joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100037a0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
mov eax, 0x202c
call fcn.1000cf70
mov eax, dword [0x1003b040]
xor eax, esp
mov dword [esp + 0x2028], eax
mov eax, dword [esp + 0x203c]
push ebx
mov ebx, dword [esp + 0x203c]
push ebp
push edi
mov edi, dword [esp + 0x203c]
xor ebp, ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x10003220
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
test eax, 0xfffffffc
je 0x10003844
mov eax, dword [edi]
push str._JILjava_lang_String_Ljava_lang_String__V
push str._init_
push ebx
push edi
call dword [eax + 0x84]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1000386b
push str.window_info_constructor_not_found
push 2
call fcn.10010318
pop ecx
push eax
call fcn.10003ea9
push 2
call fcn.10010318
push eax
call fcn.100153c9
add esp, 0x10
mov ebx, ebp
lea ecx, [esp + 0x1c]
call fcn.10002d3b
mov ecx, dword [esp + 0x2034]
mov eax, ebx
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000cf58
add esp, 0x202c
ret 0x10
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push ebp
push ebx
sar ecx, 2
push ecx
push edi
call dword [eax + 0x2b0]
mov ebx, eax
test ebx, ebx
jne 0x1000388f
push str.could_not_create_window_info_array
jmp 0x10003826
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
jmp 0x10003985
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push 0x1000
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x100038e4
lea eax, [esp + 0x38]
push eax
call fcn.10014ace
pop ecx
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [ecx + 0x28c]
mov ebp, eax
push 0x1000
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x10003974
lea eax, [esp + 0x38]
push eax
call fcn.10014ace
pop ecx
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [ecx + 0x28c]
mov dword [esp + 0x34], eax
test eax, eax
je 0x10003974
test ebp, ebp
je 0x1000396a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000396a
push eax
mov eax, dword [esp + 0x14]
push ebp
push ecx
cdq
push edx
push eax
push dword [esp + 0x40]
push dword [esp + 0x48]
push edi
call fcn.10002c4e
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000396a
mov ecx, dword [edi]
push eax
push dword [esp + 0x18]
push ebx
push edi
call dword [ecx + 0x2b8]
push dword [esp + 0x18]
mov eax, dword [edi]
inc dword [esp + 0x18]
push edi
call dword [eax + 0x5c]
push dword [esp + 0x34]
mov eax, dword [edi]
push edi
call dword [eax + 0x5c]
test ebp, ebp
je 0x1000397f
mov eax, dword [edi]
push ebp
push edi
call dword [eax + 0x5c]
push 0
add esi, 4
pop ebp
cmp esi, dword [esp + 0x24]
jne 0x1000389d
pop esi
jmp 0x10003846
Function at 0x100039a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0x10022d38
mov esi, 0x1003ba60
mov dword [0x1003ba5c], eax
push esi
call fcn.10014da6
pop ecx
pop ecx
push 0
push 0x100032c0
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
call fcn.10014ace
pop ecx
mov ecx, dword [esp + 8]
push eax
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x28c]
pop esi
ret 0xc

Function at 0x10003a80
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.10002d7f
pop ecx
pop ecx
test al, al
je 0x10003a9c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret 8
Function at 0x10003c10
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push dword [esp + 0x1c]
mov dword [0x1003ba48], 1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x2ac]
xor esi, esi
mov dword [0x1003ba4c], eax
mov eax, dword [ebx]
push esi
push dword [esp + 0x20]
push ebx
call dword [eax + 0x2ec]
cmp byte [esp + 0x20], 0
mov dword [0x1003ba50], eax
je 0x10003ca4
mov edi, esi
cmp dword [0x1003ba4c], esi
jle 0x10003dc4
mov eax, dword [0x1003ba50]
push dword [eax + edi*4]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x10003c90
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10003c87
mov dword [0x1003ba48], esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003c96
mov dword [0x1003ba48], esi
inc edi
cmp edi, dword [0x1003ba4c]
jl 0x10003c5e
jmp 0x10003dc4
push dword [0x1003ba4c]
call fcn.1000cf9b
push dword [0x1003ba4c]
mov dword [0x1003ba54], eax
push esi
push eax
call fcn.1000e4c0
add esp, 0x10
push esi
push 0x10002c70
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [0x1003ba4c]
mov eax, esi
mov ecx, dword [0x1003ba54]
test edx, edx
jle 0x10003cf3
cmp byte [ecx + eax], 0
jne 0x10003cee
mov dword [0x1003ba48], esi
inc eax
cmp eax, edx
jl 0x10003ce2
push 1
push ecx
call fcn.1000cf4a
pop ecx
pop ecx
cmp dword [0x1003ba48], esi
je 0x10003dc4
mov eax, dword [0x1003ba4c]
push 4
pop ecx
mul ecx
push 0xffffffffffffffff
pop ecx
cmovb eax, ecx
push eax
call fcn.1000cf9b
mov ebp, eax
mov edi, esi
pop ecx
cmp dword [0x1003ba4c], esi
jle 0x10003d5b
mov eax, dword [0x1003ba50]
push dword [eax + edi*4]
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + edi*4], eax
test eax, eax
jne 0x10003d52
mov dword [0x1003ba48], 2
inc edi
cmp edi, dword [0x1003ba4c]
jl 0x10003d2c
cmp dword [0x1003ba48], 1
jne 0x10003d98
push dword [esp + 0x24]
push 1
push ebp
push dword [0x1003ba4c]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x10003d8a
mov dword [0x1003ba48], 3
jmp 0x10003d98
test eax, eax
je 0x10003d98
mov dword [0x1003ba48], 2
cmp dword [0x1003ba4c], esi
jle 0x10003dba
cmp dword [ebp + esi*4], 0
je 0x10003db1
push dword [ebp + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1003ba4c]
jl 0x10003da0
push 4
push ebp
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, dword [ebx]
push 2
push dword [0x1003ba50]
push dword [esp + 0x24]
push ebx
call dword [eax + 0x30c]
mov eax, dword [0x1003ba48]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x10003e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a99e
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 8]
call fcn.1000a99e
push 0x10
mov ebx, eax
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.1000e4c0
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.1000e4c0
add esp, 0x28
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10003e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 2
push edi
call fcn.1000cf4a
push 2
push ebx
call fcn.1000cf4a
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10003ed9
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.1000cf70
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [section..data], 1
jne 0x10003f73
and dword [section..data], 0
lea eax, [ebp - 0x8004]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x10003f73
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x4004]
push 0x10022ef0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
je 0x10003f73
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x4004]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [section..data], eax
lea eax, [ebp - 0x8004]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf58
leave
ret

Function at 0x10004700
Capabilities:
Connect pipe

Disassembly:
cmp dword [esp + 0xc], 0xffffffff
jne 0x1000470b
xor al, al
jmp 0x10004744
push esi
xor esi, esi
jmp 0x10004731
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x10004741
inc esi
cmp esi, 0x258
jg 0x10004747
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10004710
mov al, 1
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_connect_named_pipe__d_n
call fcn.10001324
pop ecx
pop ecx
xor al, al
jmp 0x10004743

Function at 0x10004770
Capabilities:
Create pipe

Disassembly:
push esi
push edi
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a99e
pop ecx
pop ecx
push dword [esp + 0x18]
mov edi, eax
mov eax, 0x10000
push 0
push eax
push eax
push 1
push 8
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 2
push edi
mov esi, eax
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, esi
pop edi
cdq
pop esi
ret 0x14
Function at 0x10004860
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
cmp dword [esp + 0x14], 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x1000490f
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push eax
push dword [esp + 0x34]
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000490f
cmp dword [esp + 0x10], 4
jb 0x1000490f
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
push esi
mov eax, dword [esi]
call dword [eax + 0x2c0]
mov edi, eax
test edi, edi
je 0x1000490f
mov ecx, dword [esi]
push ebx
push edi
push esi
call dword [ecx + 0x2e0]
mov ecx, dword [esp + 0x14]
mov ebp, eax
test ecx, ecx
jle 0x100048f1
push 0
lea eax, [esp + 0x14]
sub ecx, ebx
push eax
push ecx
lea eax, [ebx + ebp]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004902
add ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jl 0x100048c9
mov eax, dword [esi]
push 0
push ebp
push edi
push esi
call dword [eax + 0x300]
mov eax, edi
jmp 0x10004911
mov eax, dword [esi]
push 0
push ebp
push edi
push esi
call dword [eax + 0x300]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x10004920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0xffffffff
push ebx
push esi
je 0x100049d2
mov esi, dword [ebp + 8]
xor ebx, ebx
push dword [ebp + 0x18]
mov dword [ebp - 4], ebx
push esi
mov eax, dword [esi]
call dword [eax + 0x2ac]
push ebx
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100049d2
cmp dword [ebp - 4], 4
jb 0x100049d2
mov eax, dword [esi]
push ebx
push dword [ebp + 0x18]
push esi
call dword [eax + 0x2e0]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x100049a3
push 0
lea edx, [ebp - 4]
sub ecx, ebx
push edx
push ecx
add eax, ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100049c1
add ebx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp ebx, ecx
jl 0x1000497d
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi]
push 2
push dword [ebp - 8]
push dword [ebp + 0x18]
push esi
call dword [eax + 0x300]
mov al, 1
jmp 0x100049d4
mov eax, dword [esi]
push 2
push dword [ebp - 8]
push dword [ebp + 0x18]
push esi
call dword [eax + 0x300]
xor al, al
pop esi
pop ebx
leave
ret 0x14
Function at 0x10004de8
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x28
mov eax, dword [0x1003b040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004e81
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x10004e46
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004e81
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x28], eax
jbe 0x10004e50
call ebx
mov ebp, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
jmp 0x10004e66
call ebx
mov ecx, eax
sub ecx, ebp
cmp ecx, dword [esp + 0x2c]
jbe 0x10004e66
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x3c]
ja 0x10004e71
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x10004e1d
jmp 0x10004e75
mov eax, dword [esp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0xc351
jmp 0x10004e86
mov eax, 0xc352
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000cf58
add esp, 0x28
ret
Function at 0x10004ea0
Capabilities:
Modify service

Disassembly:
push ecx
push ecx
push ebp
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x10004ec3
mov eax, 0x1388
jmp 0x1000507a
push ebx
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push esi
call fcn.1000a99e
push dword [esp + 0x34]
mov dword [esp + 0x1c], eax
push esi
call fcn.1000a99e
push dword [esp + 0x48]
mov dword [esp + 0x28], eax
push esi
call fcn.1000a99e
push dword [esp + 0x54]
mov dword [esp + 0x54], eax
push esi
call fcn.1000a99e
push dword [esp + 0x60]
mov ebx, eax
push esi
call fcn.1000a99e
push dword [esp + 0x6c]
mov dword [esp + 0x68], eax
push esi
call fcn.1000a99e
push dword [esp + 0x58]
mov dword [esp + 0x74], eax
push esi
call fcn.1000a99e
add esp, 0x38
mov esi, eax
mov dword [esp + 0x2c], esi
push 0xf01ff
push dword [esp + 0x14]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10004ffa
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x10004f7c
push 0x10023174
push ebx
call fcn.1001541c
pop ecx
pop ecx
test eax, eax
je 0x10004f74
push str.NT_AUTHORITYLocalSystem
push ebx
call fcn.1001541c
pop ecx
pop ecx
test eax, eax
jne 0x10004f7c
mov dword [esp + 0x1c], str.LocalSystem
push dword [esp + 0x38]
call fcn.10004d78
pop ecx
push dword [esp + 0x2c]
mov esi, eax
push dword [esp + 0x40]
push dword [esp + 0x24]
push esi
push edi
push edi
push dword [esp + 0x2c]
push 0xffffffffffffffff
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x10004fbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004fdc
cmp dword [esp + 0x44], edi
je 0x10004fdc
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
push 1
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test esi, esi
je 0x10004fea
push 2
push esi
call fcn.1000cf4a
pop ecx
pop ecx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x2c]
jmp 0x10005002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
pop ebp
push ebp
push dword [esp + 0x14]
call fcn.1000cf4a
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
test eax, eax
je 0x10005029
push ebp
push eax
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1000503a
push ebp
push eax
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1000504b
push ebp
push eax
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000505c
push ebp
push eax
call fcn.1000cf4a
pop ecx
pop ecx
test ebx, ebx
je 0x10005069
push ebp
push ebx
call fcn.1000cf4a
pop ecx
pop ecx
test esi, esi
je 0x10005076
push ebp
push esi
call fcn.1000cf4a
pop ecx
pop ecx
pop esi
mov eax, edi
pop ebx
pop edi
pop ebp
pop ecx
pop ecx
ret 0x2c
Function at 0x100052a0
Capabilities:
Create service

Disassembly:
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100052c1
mov eax, 0x1388
jmp 0x10005352
push ebx
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.1000a99e
push dword [esp + 0x2c]
mov ebp, eax
push dword [esp + 0x20]
call fcn.1000a99e
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x28]
mov dword [esp + 0x34], ebx
call fcn.1000a99e
add esp, 0x18
mov dword [esp + 0x14], eax
push esi
push esi
push esi
push esi
push esi
push ebx
push 1
push 3
push 0x10
push 0xf01ff
push eax
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x10005322
push eax
call ebx
jmp 0x1000532a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
push 2
push ebp
call fcn.1000cf4a
push 2
push dword [esp + 0x28]
call fcn.1000cf4a
push 2
push dword [esp + 0x28]
call fcn.1000cf4a
add esp, 0x18
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret 0x14

Function at 0x10005360
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10005392
mov eax, 0x1388
jmp 0x100053f2
push ebx
push esi
call fcn.1000a99e
pop ecx
pop ecx
push 4
push eax
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x100053d5
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100053c4
mov esi, dword [ebp - 0x1c]
neg esi
jmp 0x100053cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100053dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 2
push dword [ebp - 0x24]
call fcn.1000cf4a
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cf58
leave
ret 0xc
Function at 0x10005410
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10005431
mov eax, 0x1388
jmp 0x1000549c
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a99e
pop ecx
pop ecx
push 0xf01ff
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x1000547e
movzx ecx, byte [ebp + 0x14]
lea eax, [ebp + 0x14]
push eax
push 3
push ebx
mov dword [ebp + 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x10005475
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005486
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
push dword [ebp + 0x10]
call fcn.1000cf4a
pop ecx
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x10005630
Capabilities:
Start service

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x10005655
mov eax, 0x1388
jmp 0x10005751
push ebp
mov ebp, dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push ebp
call fcn.1000a99e
pop ecx
pop ecx
push 0x10
push eax
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x10005731
mov ebx, esi
mov edi, esi
cmp dword [esp + 0x2c], ebx
je 0x100056db
push dword [esp + 0x2c]
mov eax, dword [ebp]
push ebp
call dword [eax + 0x2ac]
push 4
pop ecx
mov edi, eax
mul ecx
push 0xffffffffffffffff
pop ecx
cmovb eax, ecx
push eax
call fcn.1000cf9b
mov ebx, eax
pop ecx
test edi, edi
je 0x100056db
mov ecx, dword [ebp]
push esi
push dword [esp + 0x30]
push ebp
call dword [ecx + 0x2b4]
push eax
push ebp
call fcn.1000a99e
mov dword [ebx + esi*4], eax
inc esi
pop ecx
pop ecx
cmp esi, edi
jb 0x100056b9
xor esi, esi
push ebx
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100056f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x100056f9
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x10005721
test edi, edi
je 0x10005715
push 2
push dword [ebx + esi*4]
call fcn.1000cf4a
inc esi
pop ecx
pop ecx
cmp esi, edi
jb 0x10005704
push 4
pop eax
push eax
push ebx
call fcn.1000cf4a
pop ecx
pop ecx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0x14]
jmp 0x10005739
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 2
push dword [esp + 0x1c]
call fcn.1000cf4a
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x10
Function at 0x10005760
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x10005792
mov eax, 0x1388
jmp 0x100057fa
push edi
push esi
call fcn.1000a99e
pop ecx
pop ecx
push 0x24
push eax
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100057dd
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100057cc
push dword [ebp + 0x14]
push edi
call fcn.10004de8
pop ecx
pop ecx
jmp 0x100057d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100057e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 2
push dword [ebp - 0x24]
call fcn.1000cf4a
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cf58
leave
ret 0x10

Function at 0x10005810
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10005831
mov eax, 0x1388
jmp 0x1000588f
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a99e
pop ecx
pop ecx
push 0x10000
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x10005871
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10005868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 2
push dword [ebp + 0x10]
call fcn.1000cf4a
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc