joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe28
Capabilities:
Enumerate services
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
push ebx
push esi
push edi
mov dword [ebp - 0x308], ecx
mov ebx, edx
mov dword [ebp - 0x304], eax
test byte [ebx + 1], 0x20
jne 0x40fe52
mov eax, 0x80070057
call fcn.0040fa54
mov ax, word [ebx]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x40ffd9
test ah, 0x40
je 0x40fe78
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
jmp 0x40fe81
mov eax, dword [ebx + 8]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40ff06
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x320]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.advapi32.dll_OpenServiceA
call fcn.0040fa54
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.advapi32.dll_QueryServiceConfigA
call fcn.0040fa54
mov eax, dword [ebp - 0x320]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x320]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x40fea4
lea eax, [ebp - 0x300]
push eax
mov eax, dword [ebp - 0x310]
push eax
push 0xc
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
jne 0x40ff26
call fcn.0040f7ac
mov eax, dword [ebp - 0x304]
call fcn.0040fd80
mov eax, dword [ebp - 0x304]
mov word [eax], 0x200c
mov eax, dword [ebp - 0x304]
mov dword [eax + 8], esi
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40ff6a
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x40ff5d
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.0040fd9c
pop ecx
test al, al
je 0x40ffca
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.advapi32.dll_QueryServiceStatus
call fcn.0040fa54
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x100]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
call fcn.0040fa54
mov eax, dword [ebp - 0x318]
mov edx, eax
mov eax, dword [ebp - 0x31c]
call dword [ebp - 0x308]
push ebp
mov eax, ebx
call fcn.0040fdcc
pop ecx
test al, al
jne 0x40ff6a
jmp 0x40ffeb
push ebx
mov eax, dword [ebp - 0x304]
push eax
call sub.advapi32.dll_EnumServicesStatusA
call fcn.0040fa54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410220
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4102df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x4102bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
push 0
push 0x400
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x47b0b8]
mov eax, dword [eax]
call eax
mov dx, word [ebx]
mov cx, 0x100
call fcn.0040fa60
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404f04
mov eax, dword [ebp - 0x18]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00404ff0
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040499c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4102c4
lea eax, [ebp - 0x10]
call fcn.0040fd80
ret

Function at 0x4102ec
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x410342
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.004100a8
lea eax, [ebp - 0x10]
call dword [0x47c818]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004103d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410349
lea eax, [ebp - 0x10]
call fcn.0040fd80
ret

Function at 0x410350
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x410367
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0xc]
mov ax, word [ebx]
call fcn.0041176c
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4103cc
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x4103c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4103cc
lea eax, [ebp - 0x1c]
call fcn.0040fd80
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410918
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4109c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x4109a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
push 0
push 0x400
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x47b0b8]
mov eax, dword [eax]
call eax
mov dx, word [ebx]
mov cx, 8
call fcn.0040fa60
push esi
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404f04
mov eax, dword [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00404ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109ac
lea eax, [ebp - 0x10]
call fcn.0040fd80
ret

Function at 0x4109d0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x410a26
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.004100a8
lea eax, [ebp - 0x10]
call dword [0x47c818]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00410afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a2d
lea eax, [ebp - 0x10]
call fcn.0040fd80
ret

Function at 0x410a34
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x410a50
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x410aec
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov ax, word [ebx]
call fcn.0041176c
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x410ad6
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_CreateServiceA
xor eax, eax
push ebp
push 0x410acf
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404f04
mov eax, dword [ebp - 0x20]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00404ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410ad6
lea eax, [ebp - 0x1c]
call fcn.0040fd80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410af3
lea eax, [ebp - 0x20]
call fcn.00404df4
ret
Function at 0x41c64c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41c798
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jbe 0x41c76c
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_RegCreateKeyExA
call sub.user32.dll_GetPropA
cmp eax, 0xea
jne 0x41c762
mov eax, dword [ebp - 0x14]
mov ecx, 0x24
xor edx, edx
div ecx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x41c628]
call fcn.00405974
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, esi
shl eax, 2
lea eax, [eax + eax*8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
je 0x41c75c
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x41c75c
inc edi
xor esi, esi
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x41c758
lea eax, [ebp - 0x44]
lea edx, [esi + esi*8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4 + 4]
call fcn.0040490c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec edi
jne 0x41c72f
mov byte [ebp - 9], 1
jmp 0x41c766
mov byte [ebp - 9], 0
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c79f
lea eax, [ebp - 0x44]
call fcn.00404714
lea eax, [ebp - 0x10]
mov edx, dword [0x41c628]
call fcn.00405980
lea eax, [ebp - 4]
call fcn.00404714
ret
Function at 0x41c7ac
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
mov eax, dword [ebp - 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41c860
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404714
mov dword [ebp - 0xc], 0xff
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jbe 0x41c845
mov eax, dword [ebp - 0xc]
inc eax
call fcn.00409934
mov esi, eax
test esi, esi
je 0x41c83f
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
je 0x41c838
mov eax, dword [ebp - 0xc]
mov byte [esi + eax], 0
mov edx, edi
mov eax, esi
call fcn.00409920
mov eax, esi
call fcn.00409980
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c867
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404738
ret

Function at 0x41c870
Capabilities:
Delete registry value
Query or enumerate registry key

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.00404bc4
mov eax, dword [ebp - 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41c90f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jbe 0x41c8ef
push 4
mov eax, dword [ebp - 8]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegEnumKeyExA
mov edi, eax
test edi, edi
jbe 0x41c8e5
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_RegFlushKey
test eax, eax
je 0x41c8df
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
mov ebx, esi
jmp 0x41c8f4
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c916
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404738
ret
Function at 0x41c988
Capabilities:
Delete registry value
Query or enumerate registry key
Set registry value

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.00404bc4
mov eax, dword [ebp - 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41ca61
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.00404bd4
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jbe 0x41ca3f
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
test esi, esi
jbe 0x41ca39
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41ca33
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_RegFlushKey
test eax, eax
je 0x41ca33
jmp 0x41ca2d
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_SetServiceStatus
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_RegFlushKey
test eax, eax
je 0x41ca33
cmp edi, dword [ebp - 0x14]
ja 0x41ca33
cmp dword [ebp - 0x24], 4
jne 0x41ca0e
push esi
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca68
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404738
ret

Function at 0x41ca74
Capabilities:
Delete registry value
Query or enumerate registry key

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.00404bc4
mov eax, dword [ebp - 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41cb44
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jbe 0x41cb22
push 0x24
mov eax, dword [ebp - 8]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
test esi, esi
jbe 0x41cb1c
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x41cb16
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_RegFlushKey
test eax, eax
je 0x41cb16
jmp 0x41cb10
mov edi, dword [ebp - 0x10]
push 0x1f4
call sub.advapi32.dll_SetServiceStatus
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_RegFlushKey
test eax, eax
je 0x41cb16
cmp edi, dword [ebp - 0x10]
ja 0x41cb16
cmp dword [ebp - 0x20], 1
jne 0x41caf0
push esi
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cb4b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404738
ret
Function at 0x41cb54
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
mov eax, dword [ebp + 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41cd44
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x41cd07
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0x41cd58
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jne 0x41cbe4
call sub.user32.dll_GetPropA
lea edx, [ebp - 0x1c]
call fcn.0040bfcc
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x407c4c]
call fcn.0040c7f8
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41cd11
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
push 0
push 2
push 0x110
push 0xf01ff
push edi
push esi
push ebx
call sub.advapi32.dll_OpenProcessToken
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41cc44
call sub.user32.dll_GetPropA
lea edx, [ebp - 0x20]
call fcn.0040bfcc
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x407c4c]
call fcn.0040c7f8
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41cd11
mov byte [ebp - 5], 1
mov eax, dword [0x47b154]
cmp dword [eax], 0
je 0x41cce0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x400
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.00404c34
mov eax, 4
call fcn.0040272c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004049d4
inc eax
call fcn.0040272c
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
xor eax, eax
push ebp
push 0x41ccd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.004097a4
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x47b154]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cce0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0040274c
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41cd11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cd4b
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404738
lea eax, [ebp - 0x14]
call fcn.00404714
lea eax, [ebp - 4]
call fcn.00404714
lea eax, [ebp + 8]
call fcn.00404714
ret
Function at 0x41cd5c
Capabilities:
Delete registry value
Query or enumerate registry key
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41ce39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41ce19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x41ce4c
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x41ce0f
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
test esi, esi
je 0x41ce09
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x41cdcf
je 0x41cdd6
dec eax
je 0x41cddd
jmp 0x41cde2
mov edi, 2
jmp 0x41cde2
mov edi, 3
jmp 0x41cde2
mov edi, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x41ce03
mov byte [ebp - 9], 1
push esi
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ce23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce40
lea eax, [ebp - 4]
call fcn.00404714
ret

Function at 0x41ce50
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41cf80
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41cf6a
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41cf61
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x14]
call fcn.00408894
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41cf51
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 2
je 0x41cf03
dec eax
je 0x41cf11
dec eax
je 0x41cf1f
jmp 0x41cf2d
mov eax, ebx
mov edx, 0x41cf94
call fcn.00404768
jmp 0x41cf39
mov eax, ebx
mov edx, 0x41cfa0
call fcn.00404768
jmp 0x41cf39
mov eax, ebx
mov edx, 0x41cfac
call fcn.00404768
jmp 0x41cf39
mov eax, ebx
mov edx, 0x41cfb8
call fcn.00404768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf58
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf87
lea eax, [ebp - 4]
call fcn.00404714
ret
Function at 0x41cfbc
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41d127
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d109
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41d100
mov eax, dword [0x47ae9c]
cmp dword [eax], 0
je 0x41d0f7
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x47ae9c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x41d0f7
call sub.user32.dll_GetPropA
cmp eax, 0x7a
jne 0x41d0f7
mov eax, dword [ebp - 0x14]
inc eax
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41d0f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x47ae9c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x41d0da
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00409920
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00404768
jmp 0x41d0ca
mov edx, dword [ebx]
mov eax, 0x41d13c
call fcn.00404d18
mov edx, eax
mov eax, ebx
mov ecx, 2
call fcn.00404c74
mov edx, dword [ebx]
mov eax, 0x41d13c
call fcn.00404d18
test eax, eax
jg 0x41d0b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d0f7
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d12e
lea eax, [ebp - 0x18]
call fcn.00404714
lea eax, [ebp - 4]
call fcn.00404714
ret