joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010a60
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f858
push 0x10025bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
ja case.default.0x10010aa4
mov ecx, dword [ebp - 0x28]
jmp dword [ecx*4 + 0x10010c18]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je case.0x10010aa4.1
jmp case.default.0x10010aa4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10010af9
jmp case.default.0x10010aa4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x10010b6d
cmp dword [ebp - 0x2c], 2
jbe 0x10010b13
cmp dword [ebp - 0x2c], 4
je 0x10010b48
jmp 0x10010b6d
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10010b46
mov dword [ebp - 0x1c], 1
jmp 0x10010b6d
push 4
lea eax, [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10010b6d
mov dword [ebp - 0x1c], 1
jmp case.default.0x10010aa4
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10010b8e
jmp case.default.0x10010aa4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10010ba7
mov dword [ebp - 0x1c], 1
jmp case.default.0x10010aa4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10010bc8
jmp case.default.0x10010aa4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x10010aa4
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10010bef
jmp 0x10010c04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010d33
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10010ee0
mov dword [ebp - 0x30], 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10010daf
xor eax, eax
jmp 0x10010ee3
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0xc], 0
jbe 0x10010ee0
cmp dword [ebp - 0x24], 1
jbe 0x10010ee0
mov dword [ebp - 0x34], 0xd
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov byte [edx], 0xa1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
jmp 0x10010e55
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0xc]
jae 0x10010eb1
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, edx
add eax, dword [ebp - 0x34]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x10010e4c
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011333
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 4], 0
jne 0x10011366
mov eax, 1
jmp 0x10011368
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100113ac
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 4], 0
jne 0x100113dc
mov al, 1
jmp 0x100113de
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10011435
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 4], 0
jne 0x10011472
mov eax, 1
jmp 0x10011474
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001147d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 4], 0
jne 0x100114c8
mov eax, 1
jmp 0x100114ca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100115fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0xc], 0
jne 0x10011645
mov eax, 1
jmp 0x10011647
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100116ad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 2
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100116f8
mov eax, 1
jmp 0x100116fa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100128ea
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ea64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xac], 0
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xac], 0x9c
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1001294b
jmp 0x100129a5
cmp dword [ebp - 0xa8], 5
jbe 0x100129a5
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0
push str.DwmEnableComposition
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x10012996
push 0
call dword [ebp - 0xb0]
add esp, 4
jmp 0x1001299e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100129b6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x1ac]
call fcn.1001403c
add eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov byte [edx], 0x94
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x84]
mov ecx, dword [ecx + 0x1ac]
call fcn.1001402b
push eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [0x10095374], 0
jne 0x10012ab2
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 6
idiv ecx
add edx, 1
mov dword [ebp - 0x80], edx
push 6
push 0
lea edx, [ebp - 0x78]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x7c], 0
jmp 0x10012a64
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x80]
jge 0x10012a83
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x7c]
mov byte [ebp + eax - 0x78], dl
jmp 0x10012a5b
push 1
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 4]
call fcn.10004efc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x10095374]
add ecx, 1
mov dword [0x10095374], ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.1000f8b3
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x70]
push ecx
push 0x1008c340
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100130d2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x100130e9
jmp 0x1001314b
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 0xc]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10013145
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret 8

Function at 0x10013151
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1001316b
jmp 0x10013215
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10013182
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0x97
mov edx, dword [ebp - 8]
sub edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x10], 0
jne 0x100131f1
mov eax, dword [ebp - 0xc]
mov byte [eax + 1], 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.1000f8b3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x100143bb
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10014437
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea ecx, [ebp - 0x10]
push ecx
push 0x1008c350
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014a27
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
call fcn.100143bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10014a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], 1
jne 0x10014a8c
mov dword [ebp - 0x10], 2
jmp 0x10014ab1
cmp dword [ebp + 0xc], 2
jne 0x10014a9b
mov dword [ebp - 0x10], 4
jmp 0x10014ab1
cmp dword [ebp + 0xc], 4
jne 0x10014aaa
mov dword [ebp - 0x10], 3
jmp 0x10014ab1
mov dword [ebp - 0x10], 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x10014ad7
jmp 0x10014adb
mov byte [ebp - 8], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x10014af8
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
call fcn.100143bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x28], 1
jne 0x10014b6b
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10014b65
jmp 0x10014b69
mov byte [ebp - 8], 1
jmp 0x10014b6f
mov byte [ebp - 8], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10014b8c
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
call fcn.100143bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x28], 1
je 0x10014bff
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10014bfb
jmp 0x10014bff
mov byte [ebp - 8], 1
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x10014c08
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
call fcn.100143bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x28], 1
je 0x10014c6f
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10014c84
jmp 0x10014c88
mov byte [ebp - 8], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10015536
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x1007f89c
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x114], 0
je 0x100155bf
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x118], 0
je 0x100155db
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x11c], 0
je 0x100155f7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x120], 0
je 0x10015613
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.1000f885
mov esp, ebp
pop ebp
ret