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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016630
push 0x100154f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x1000a1e7
jmp dword [eax*4 + 0x1000a330]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x1000a1e7
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a1e7
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x1000a1e7
cmp edx, 2
jbe 0x1000a270
cmp edx, 4
jne case.default.0x1000a1e7
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
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 case.default.0x1000a1e7
jmp 0x1000a2f4
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
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 case.default.0x1000a1e7
jmp 0x1000a2f4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a1e7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x1000a1e7
jmp 0x1000a2f4
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a1e7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x1000a1e7
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000a31b
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 0x1000a7f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10015af1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.10007d50
mov dword [esp + 0x5c], 0
mov dword [esi + 0x128], 0x10016654
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x16c]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x1000a8bd
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x10016648
mov byte [esi + 0x117], bl
mov dword [esi + 0x11c], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x1000a91f
push 0x64
push 0
push 8
mov ecx, eax
call fcn.1000b430
jmp 0x1000a921
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x1000af80
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0x1ac], eax
mov byte [esi + 0x114], bl
mov byte [esi + 0x116], 0
mov byte [esi + 0x115], 0
mov byte [esi + 0x118], 0
call fcn.1000df40
push ebx
push 0
push 0
push esi
push 0x1000aff0
push 0
push 0
mov dword [esi + 0x120], eax
call fcn.1000df40
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x124], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x1000b0e0
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x1000b291
call fcn.1000e3d0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x1000b291
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x1000b15d
cmp eax, 0x208
ja 0x1000b15d
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x1000b20d
je 0x1000b1f5
cmp eax, 0x105
ja 0x1000b1c9
je 0x1000b1ab
sub eax, 0x100
je 0x1000b18d
dec eax
je 0x1000b1ab
sub eax, 3
jne case.0x1000b217.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x1000b217.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x1000b217.521
sub eax, 0x201
je 0x1000b1e6
dec eax
jne case.0x1000b217.521
push 0
push 0
push 0
push 0
push 4
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 2
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x1000b27a
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x1000b217.521
jmp dword [eax*4 + 0x1000b298]
push 0
push 0
push 0
push 0
push 8
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 0x10
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 0x20
jmp 0x1000b27a
push 0
push 0
push 0
push 0
push 0x40
jmp 0x1000b27a
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x1000b129
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x1000b2c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000b328
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000b320
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8
Function at 0x1000b330
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000b3c2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x1000b361
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x76
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.10007dc0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x1000b800
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x1000b9b3
cmp dword [esi + 0x1c], edi
je 0x1000b9b3
call fcn.1000bdc0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.1000bc00
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call fcn.1000bc00
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x1000b896
cmp dword [esp + 0x1c], 1
jne 0x1000b896
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x1000b883
inc edi
add eax, 4
cmp edi, 0x10
jl 0x1000b876
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x1000b892
or edi, 0xffffffff
mov eax, edi
jmp 0x1000b899
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.1000bc00
cmp byte [ebx], 2
jne 0x1000b901
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1000be00
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1000be60
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x1001cdec]
cmp ecx, eax
mov edi, edx
je 0x1000b92e
push edi
mov ecx, esi
call fcn.1000b9c0
test al, al
je 0x1000b92e
add edi, 0x13
jmp 0x1000b931
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000b94f
push edi
mov ecx, esi
call fcn.1000b9c0
test al, al
je 0x1000b945
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x1000b936
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x1001cdec], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x1000b99c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x1000b98b
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000c270
Capabilities:
Modify service
Start service
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
mov ebx, ecx
push ebp
xor ecx, ecx
push esi
mov cl, byte [eax]
lea esi, [eax + 1]
mov eax, ecx
push edi
cmp eax, 5
mov dword [esp + 0x10], ebx
ja case.default.0x1000c293
jmp dword [eax*4 + 0x1000c454]
push esi
call fcn.10004f50
add esp, 4
jmp 0x1000c436
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 2
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 4
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call ebp
mov ebx, dword [esp + 0x10]
push edi
call ebp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.1000bfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x1000c2a8
Capabilities:
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
mov ebx, ecx
push ebp
xor ecx, ecx
push esi
mov cl, byte [eax]
lea esi, [eax + 1]
mov eax, ecx
push edi
cmp eax, 5
mov dword [esp + 0x10], ebx
ja case.default.0x1000c293
jmp dword [eax*4 + 0x1000c454]
push esi
call fcn.10004f50
add esp, 4
jmp 0x1000c436
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 2
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 4
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call ebp
mov ebx, dword [esp + 0x10]
push edi
call ebp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.1000bfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x1000c2ee
Capabilities:
Modify service

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
mov ebx, ecx
push ebp
xor ecx, ecx
push esi
mov cl, byte [eax]
lea esi, [eax + 1]
mov eax, ecx
push edi
cmp eax, 5
mov dword [esp + 0x10], ebx
ja case.default.0x1000c293
jmp dword [eax*4 + 0x1000c454]
push esi
call fcn.10004f50
add esp, 4
jmp 0x1000c436
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 2
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 4
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call ebp
mov ebx, dword [esp + 0x10]
push edi
call ebp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.1000bfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x1000c341
Capabilities:
Modify service

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
mov ebx, ecx
push ebp
xor ecx, ecx
push esi
mov cl, byte [eax]
lea esi, [eax + 1]
mov eax, ecx
push edi
cmp eax, 5
mov dword [esp + 0x10], ebx
ja case.default.0x1000c293
jmp dword [eax*4 + 0x1000c454]
push esi
call fcn.10004f50
add esp, 4
jmp 0x1000c436
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 2
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 4
jmp 0x1000c41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
jmp 0x1000c433
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000c436
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000c433
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ebx, eax
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call ebp
mov ebx, dword [esp + 0x10]
push edi
call ebp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.1000bfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8