joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23168b9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10]
lea edi, [ebp - 0xc]
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x23168c1f
mov eax, dword [ebp - 4]
add eax, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x23168c1f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [edi]
mov dword [esi], eax
cmp dword [esi], 0
je 0x23168c1f
mov eax, dword [esi]
cmp ebx, dword [eax + 0x18]
jne 0x23168c12
lea eax, [edx + 0x3c]
movzx eax, word [eax]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
mov ecx, dword [esi]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, edx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 8]
cmp eax, dword [edi]
jne 0x23168bda
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x23168e80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, esi
call fcn.2316839c
mov dword [ebp - 8], eax
mov eax, esi
call fcn.23169128
mov edi, eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x50]
push 0x23168f98
push 0x23168fa8
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x23174680], eax
push 0x40
push 0x1000
push ebx
push edi
call dword [0x23174680]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x23168eef
push 0x40
push 0x1000
push ebx
push 0
call dword [0x23174680]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x23168f8c
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx ebx, word [eax + 6]
mov ecx, dword [ebp - 0xc]
sub ecx, esi
mov eax, ebx
shl eax, 3
lea eax, [eax + eax*4]
add ecx, eax
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.231541d0
dec ebx
test ebx, ebx
jl 0x23168f52
inc ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
add edx, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x10]
call fcn.231541d0
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov dword [ebp - 0xc], eax
dec ebx
jne 0x23168f2a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.231683c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 0x10]
push eax
push edi
call fcn.2316850c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.23168340
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x23168fe4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
mov eax, edi
call fcn.231527c4
mov dword [esp], eax
test edi, edi
je 0x23169030
test ebp, ebp
je 0x23169030
mov esi, edi
dec esi
test esi, esi
jb 0x23169030
inc esi
xor ebx, ebx
push 0x2316903c
call sub.kernel32.dll_GetModuleHandleA
inc eax
mov al, byte [eax]
sub al, 0x53
imul bl
add al, 0xda
mov edx, edi
dec edx
add edx, ebp
sub edx, ebx
xor al, byte [edx]
mov edx, dword [esp]
add edx, ebx
mov byte [edx], al
inc ebx
dec esi
jne 0x23169009
mov eax, dword [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x2316a048
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316a168
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x2316a184
call fcn.23153a58
test eax, eax
jg 0x2316a14a
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.23169fe4
mov esi, eax
test esi, esi
jle 0x2316a14a
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.23153a18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x2316a14a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.231537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.23153a18
cmp dword [ebp - 0xc], 0
jne 0x2316a11c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x2316a141
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.231539c0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316a16f
lea eax, [ebp - 0xc]
call fcn.2315363c
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316a188
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316a2c6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.23169fe4
mov esi, eax
test esi, esi
jle 0x2316a2a8
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.23153a18
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x2316a2a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.231537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.23153a18
cmp dword [ebp - 0xc], 0
jne 0x2316a228
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x2316a233
mov eax, dword [ebp - 0xc]
call fcn.231539c0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x2316a29f
mov eax, dword [ebp - 0x18]
call fcn.231527c4
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x2316a298
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x2316a28f
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x2316a29f
mov eax, esi
call fcn.231527f4
jmp 0x2316a29f
mov eax, esi
call fcn.231527f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316a2cd
lea eax, [ebp - 0xc]
call fcn.2315363c
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316a7f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316a8bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.23169fe4
mov esi, eax
test esi, esi
jle 0x2316a8a4
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.23153a18
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x2316a8a4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.231537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.23153a18
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316a8c6
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret

Function at 0x2316a8d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316a993
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.23169fe4
mov esi, eax
test esi, esi
jle 0x2316a978
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.23153a18
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x2316a978
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.231537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.23153a18
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316a99a
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret
Function at 0x2316a9a4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316ab02
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x2316ab1c
call fcn.23153a58
test eax, eax
je 0x2316aadc
lea eax, [ebp - 0xc]
push eax
push 0x2000e
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
cmp byte [ebp - 5], 0
je 0x2316aabf
test esi, esi
jne 0x2316aadc
mov eax, dword [0x231731cc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.23153aa0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
call fcn.23153a10
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
cmp esi, 0x103
jne 0x2316aa74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
jmp 0x2316aab5
test esi, esi
jne 0x2316aab5
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.23153aa0
push dword [ebp - 4]
push 0x2316ab1c
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.23153880
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 5]
mov eax, edi
call fcn.2316a9a4
test al, al
je 0x2316aab0
xor esi, esi
jmp 0x2316aab5
mov esi, 0x3f2
test esi, esi
je 0x2316aa18
jmp 0x2316aadc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316ab09
lea eax, [ebp - 0x18]
call fcn.2315363c
lea eax, [ebp - 0x10]
call fcn.2315363c
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316ab20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316ac5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.2315363c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x2316ac3f
mov byte [ebp - 9], 1
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.231527c4
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
cmp byte [ebp + 8], 0
je 0x2316abbb
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
jmp 0x2316abd4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x2316ac27
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.23153aa0
lea eax, [ebp - 0x10]
call fcn.23153a10
mov edx, eax
mov eax, esi
mov ecx, dword [ebp - 0x18]
call fcn.231528d8
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x2316ac0c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.23153690
jmp 0x2316ac26
mov eax, dword [ebp - 8]
push dword [eax]
push 0x2316ac78
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.23153880
inc edi
test ebx, ebx
je 0x2316ab93
mov eax, esi
call fcn.231527f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316ac64
lea eax, [ebp - 0x10]
call fcn.2315363c
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316af7c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x2316af85
mov eax, dword [ebp - 4]
add esp, 0xfffff7e4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4820], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x2316b09d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.2315363c
test edi, edi
je 0x2316b084
push 4
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x2316b084
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x2316b07d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4800
lea eax, [ebp - 0x481c]
push eax
push 3
push 0x30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jb 0x2316b05a
inc esi
lea ebx, [ebp - 0x481c]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4820]
mov edx, dword [ebp - 0x1c]
call fcn.2315376c
mov eax, dword [ebp - 0x4820]
call fcn.2316aedc
cmp edi, eax
jne 0x2316b054
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.2315376c
jmp 0x2316b05a
add ebx, 0x24
dec esi
jne 0x2316b025
cmp dword [ebp - 0x10], 0
jne 0x2316aff1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316b084
cmp dword [ebp - 8], 0
jbe 0x2316b07c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316b0a4
lea eax, [ebp - 0x4820]
call fcn.2315363c
ret

Function at 0x2316b0ac
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316b14b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x2316b12b
push 4
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x2316b121
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x2316b11b
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
jmp 0x2316b130
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316b152
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret
Function at 0x2316b218
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316b2f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x2316b2cf
push 0x14
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x2316b2c9
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x2316b2c3
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x2316b2c3
jmp 0x2316b2bd
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x2316b2c3
cmp edi, dword [ebp - 0x14]
ja 0x2316b2c3
cmp dword [ebp - 0x24], 4
jne 0x2316b29e
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316b2f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret

Function at 0x2316b378
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316b447
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x2316b425
push 0x24
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x2316b41f
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x2316b419
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x2316b419
jmp 0x2316b413
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x2316b419
cmp edi, dword [ebp - 0x10]
ja 0x2316b419
cmp dword [ebp - 0x20], 1
jne 0x2316b3f4
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316b44e
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret
Function at 0x2316b99c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1118], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316baa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call fcn.23166e1c
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x1114]
mov edx, 0x1000
call fcn.23169ee0
test eax, eax
je 0x2316ba86
mov eax, dword [ebp - 0xc]
shr eax, 2
dec eax
test eax, eax
jl 0x2316ba86
inc eax
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x1114]
mov edi, dword [ebx]
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x2316ba36
push 0x104
lea ecx, [ebp - 0x114]
xor edx, edx
mov eax, esi
call fcn.23169f04
lea eax, [ebp - 0x1118]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.231537a8
mov edx, dword [ebp - 0x1118]
mov eax, dword [ebp - 4]
call fcn.231667f8
test al, al
je 0x2316ba78
call sub.kernel32.dll_GetCurrentProcessId
cmp edi, eax
je 0x2316ba78
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push esi
call sub.kernel32.dll_CloseHandle
add ebx, 4
dec dword [ebp - 0x10]
jne 0x2316ba0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316baae
lea eax, [ebp - 0x1118]
call fcn.2315363c
lea eax, [ebp - 4]
call fcn.2315363c
ret

Function at 0x2316bfd0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x2316c091
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x2316c071
push 0x14
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
jbe 0x2316c06b
lea eax, [ebp - 8]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x2316c065
mov edi, 0x1e
push 0x3e8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
mov edx, 0x1c
call fcn.231541d8
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
lea eax, [ebp - 0x24]
test eax, eax
je 0x2316c065
cmp dword [ebp - 0x20], 4
je 0x2316c065
dec edi
jne 0x2316c034
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 4]
call fcn.2316b1c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316c098
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316c478
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
mov ebx, eax
test ebx, ebx
jne 0x2316c486
mov byte [esp], 1
jmp 0x2316c4b9
mov byte [esp], 0
call fcn.23166e1c
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x2316c4b3
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
push ebx
call sub.kernel32.dll_CloseHandle
mov al, byte [esp]
pop edx
pop ebx
ret