joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a940
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x1002a96a
xor eax, eax
jmp 0x1002a9e4
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002a9ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x431
jne 0x1002a9c8
mov dword [ebp - 8], 1
jmp 0x1002a9d1
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x1002a9e1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x30

Function at 0x1002a9f0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002aa30
xor eax, eax
jmp 0x1002aa8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002aa82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1002aef0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068e28
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x1c], 0x10077838
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x100
mov byte [ebp - 0x124], 0
push 0xff
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.10041d70
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.100016b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x209
push 0
mov edx, dword [ebp - 0x1c]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b042
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1002b042
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x18]
call fcn.10001710
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10006080
lea ecx, [ebp - 0x18]
call fcn.10005ce0
push 0
push str.google_chrome
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002aff7
mov eax, dword [ebp - 0x128]
mov dword [eax + 0x10], 1
push 0
push str.360chrome
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b017
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 4], 1
push 0
push str.360se6
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b036
mov edx, dword [ebp - 0x128]
mov dword [edx], 1
mov dword [ebp - 0x10], 0x100
jmp 0x1002af84
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100016d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret
Function at 0x1002b0e0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068e58
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x1c], str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x100
mov byte [ebp - 0x124], 0
push 0xff
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.10041d70
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.100016b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x209
push 0
mov edx, dword [ebp - 0x1c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b27c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1002b272
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x18]
call fcn.10001710
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10006080
lea ecx, [ebp - 0x18]
call fcn.10005ce0
push 0
push 0x100778c4
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b1e6
mov eax, dword [ebp - 0x128]
mov dword [eax], 1
push 0
push 0x100778cc
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b206
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 4], 1
push 0
push 0x100778e8
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b226
mov edx, dword [ebp - 0x128]
mov dword [edx + 8], 1
push 0
push 0x100778f4
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b246
mov eax, dword [ebp - 0x128]
mov dword [eax + 0xc], 1
push 0
push 0x10077900
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b266
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 0x10], 1
mov dword [ebp - 0x10], 0x100
jmp 0x1002b174
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100016d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret
Function at 0x1002b2b0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068e88
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x1c], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x100
mov byte [ebp - 0x124], 0
push 0xff
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.10041d70
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.100016b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x209
push 0
mov edx, dword [ebp - 0x1c]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b44c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1002b442
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x18]
call fcn.10001710
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10006080
lea ecx, [ebp - 0x18]
call fcn.10005ce0
push 0
push str.qqpcmgr
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b3b6
mov eax, dword [ebp - 0x128]
mov dword [eax], 1
push 0
push str.kingsoft_internet_security
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b3d6
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 4], 1
push 0
push 0x10077960
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b3f6
mov edx, dword [ebp - 0x128]
mov dword [edx + 8], 1
push 0
push 0x1007796c
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b416
mov eax, dword [ebp - 0x128]
mov dword [eax + 0xc], 1
push 0
push str.360sd
lea ecx, [ebp - 0x18]
call fcn.10005c60
test eax, eax
jl 0x1002b436
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 0x10], 1
mov dword [ebp - 0x10], 0x100
jmp 0x1002b344
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100016d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret
Function at 0x1002b4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
mov byte [ebp - 0x90], 0
push 0x7f
push 0
lea eax, [ebp - 0x8f]
push eax
call fcn.10041d70
add esp, 0xc
push 0x10077980
lea ecx, [ebp - 0x90]
push ecx
call fcn.10041df0
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x20119
push 0
lea eax, [ebp - 0x90]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002b528
jmp 0x1002b558
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.InstallDate
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1002b54e
jmp 0x1002b558
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret
Function at 0x1002ba80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068f17
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], 0
push 0x124
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.10041d70
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x1002bb28
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100016d0
mov eax, dword [ebp - 0x148]
jmp 0x1002bbc7
mov dword [ebp - 0x13c], 0x128
lea ecx, [ebp + 8]
call fcn.10025740
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1002bb99
push 0
lea ecx, [ebp + 8]
call fcn.10001730
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.10046e95
add esp, 4
push eax
call fcn.10046270
add esp, 8
test eax, eax
jne 0x1002bb82
mov dword [ebp - 0x144], 1
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1002bb51
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100016d0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c420
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x1002c439
xor eax, eax
jmp 0x1002c558
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
jne 0x1002c44c
mov eax, 0xfffffff6
jmp 0x1002c558
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x1002c473
or eax, 0xffffffff
jmp 0x1002c558
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0
jne 0x1002c4b2
push 0
push 0
push 0
push 0
push 0x10077bb8
push str.system32DRIVERSkavbootc.sys
push 1
push 0
push 1
push 0xf01ff
push 0x10077bec
push 0x10077bf8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
jmp 0x1002c4e6
push 0
push 0
push 0
push 0
push str.Boot_Bus_Extender
push str.system32DRIVERSkavbootc64.sys
push 1
push 0
push 1
push 0xf01ff
push 0x10077c38
push str.kavbootc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1002c512
push 0xf01ff
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1002c512
mov dword [ebp - 8], 0xfffffffe
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x1002c555
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 1
cmp dword [ebp + 8], 0
je 0x1002c555
mov ecx, dword [ebp - 0x10]
call fcn.1002c6d0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c560
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x1002c637
mov ecx, dword [ebp - 0x10]
call fcn.1002c7c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002c637
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
je 0x1002c637
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002c5bf
or eax, 0xffffffff
jmp 0x1002c6c8
push 0xf01ff
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002c5fe
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1002c5f5
mov dword [ebp - 4], 0xfffffff8
jmp 0x1002c5fc
mov dword [ebp - 4], 0
jmp 0x1002c605
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x1002c637
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
je 0x1002c6c5
cmp dword [ebp - 4], 0
je 0x1002c655
cmp dword [ebp + 8], 0
jne 0x1002c655
mov eax, dword [ebp - 4]
jmp 0x1002c6c8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x1002c681
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10044f39
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x1002c6a3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], 0
je 0x1002c6c5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call fcn.10044f39
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c6d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x1002c6e9
xor eax, eax
jmp 0x1002c7b4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002c709
or eax, 0xffffffff
jmp 0x1002c7b4
push 0xf01ff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1002c732
mov eax, 0xfffffffe
jmp 0x1002c7b4
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1002c76d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1002c764
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov dword [ebp - 8], 0
jmp 0x1002c76b
mov dword [ebp - 8], 0xfffffffa
jmp 0x1002c774
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x1002c7b1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 1
mov ecx, dword [ebp - 0x10]
call fcn.1002c8a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1002c7c0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x18], 0
jne 0x1002c7d9
xor eax, eax
jmp 0x1002c88f
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002c7f9
or eax, 0xffffffff
jmp 0x1002c88f
push 0xf01ff
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002c853
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
lea ecx, [ebp - 0x28]
push ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1002c84a
mov dword [ebp - 8], 0xfffffff9
jmp 0x1002c851
mov dword [ebp - 8], 0
jmp 0x1002c85a
mov dword [ebp - 8], 0xfffffffe
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x1002c88c
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1002d050
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x214], ecx
mov byte [ebp - 0x210], 0
push 0x1ff
push 0
lea eax, [ebp - 0x20f]
push eax
call fcn.10041d70
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x200
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002d123
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0x10077ccc
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1002d500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x1002d509
xor ecx, ecx
jne 0x1002d509
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002d54e
mov eax, dword [ebp - 0xc]
jmp 0x1002d5a4
cmp dword [ebp - 4], 1
je 0x1002d561
cmp dword [ebp - 4], 2
je 0x1002d561
mov eax, 0xd
jmp 0x1002d5a4
cmp dword [ebp + 0xc], 0
je 0x1002d59a
cmp dword [ebp - 8], 0
je 0x1002d594
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 1
div ecx
test edx, edx
jne 0x1002d58b
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movsx eax, byte [edx - 1]
test eax, eax
je 0x1002d592
mov eax, 0xd
jmp 0x1002d5a4
jmp 0x1002d59a
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002dcd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x1002dcd9
xor ecx, ecx
jne 0x1002dcd9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x1002dcfd
push 0x80004005
call fcn.100017a0
xor eax, eax
jne 0x1002dce1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc