joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ff10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142774
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x10]
push 0x38
call fcn.101157fb
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1005ff73
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 0x30], eax
lea esi, [ebx + 4]
mov dword [ebp - 4], 2
push esi
push 0
push edi
push 0x10060150
push 0
push 0
call fcn.101236ea
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x1005ffcb
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [esi], 0
call fcn.10113718
int3

Function at 0x10060d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x28]
lea esi, [esp + 0x10]
push esi
push eax
movzx eax, byte [ebp + 0x14]
push 0
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x1c]
movaps xmmword [esp + 0x1c], xmm0
push dword [ecx]
push 0
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x10060e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, esi
mov dword [edi + 4], 0x1019abc0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [edi], 0
mov dword [edi + 4], 0x1019ab88
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x10060e60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], edi
lea edi, [esp + 0x10]
push edi
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x28]
push ecx
push 0
push dword [eax]
movzx eax, byte [ebp + 0x18]
push dword [ebp + 0x1c]
movaps xmmword [esp + 0x24], xmm0
push eax
push 0
push 0
push esi
push 0
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10060efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov eax, edi
mov dword [ecx + 4], 0x1019abc0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
mov dword [eax], 0
mov dword [eax + 4], 0x1019ab88
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x10062700
Capabilities:
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142e1a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.ui_file_downloader.0
push eax
call fcn.100625a0
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], 0
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 3
call fcn.10060730
mov dword [esi + 0xa8], 0
xorps xmm0, xmm0
movq qword [esi + 0xac], xmm0
mov dword [esi + 0xb4], 0
lea eax, [esi + 0xc0]
mov dword [esi + 0xb8], 0
lea edi, [esi + 0xb8]
xor ecx, ecx
push 2
push eax
mov word [esi + 0xbc], cx
call fcn.10113e0a
add esp, 8
mov dword [esi + 0xf0], 0
push 0
push ecx
push 1
xor edx, edx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call fcn.10060670
mov eax, dword [esi + 0xb4]
add esp, 0xc
test eax, eax
je 0x1006280a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb4], 0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb4], eax
mov eax, 1
xchg dword [edi], eax
xor eax, eax
lea ecx, [esi + 0xbc]
xchg word [ecx], ax
push 0x24
call fcn.101157fb
add esp, 4
mov dword [ebp - 0x18], eax
push dword [ebx + 0x10]
mov byte [ebp - 4], 0xa
xorps xmm0, xmm0
push dword [ebp - 0x14]
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.10061440
mov edi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x14]
lea ecx, [esi + 0xa8]
cmp ecx, eax
je 0x10062880
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov dword [ecx], edi
test eax, eax
je 0x10062896
mov ecx, eax
call fcn.10061800
push 0x24
push dword [ebp - 0x14]
jmp 0x1006288e
test edi, edi
je 0x10062896
mov ecx, edi
call fcn.10061800
push 0x24
push edi
call fcn.101157ed
add esp, 8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10062b90
push eax
lea ecx, [ebp - 0x24]
call fcn.1005fe70
cmp dword [esi + 0xb0], 0
mov edx, eax
jne 0x1006292a
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
cmp dword [ebp - 0x20], 0
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], ecx
jne 0x1006292a
lea ecx, [ebx + 0x94]
call fcn.10002400
lea ecx, [ebx + 0x7c]
call fcn.10002400
lea ecx, [ebx + 0x64]
call fcn.10002400
lea ecx, [ebx + 0x4c]
call fcn.10002400
lea ecx, [ebx + 0x30]
call fcn.10002400
lea ecx, [ebx + 0x14]
call fcn.10002400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xa4
call fcn.10123552
int3
Function at 0x10066730
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10143331
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x24
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100667d5
push str.ServiceManager::WaitToStopService
lea edx, [eax + 4]
lea ecx, [ebp - 0xe4]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x100667ac
mov edx, str.QueryServiceStatusEx_err
mov ecx, esi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x100667c0
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xe4]
call fcn.1000ad70
mov eax, 0x42a
jmp 0x100668ab
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x10066828
cmp eax, 3
je 0x10066828
push str.ServiceManager::WaitToStopService
mov edx, 8
lea ecx, [ebp - 0xe4]
call fcn.1000aed0
add esp, 4
mov dword [ebp - 4], 1
cmp byte [eax + 0x48], 0
je 0x10066813
mov edx, str.Cannot_start_the_service_because_it_is_already_running
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0xe4]
call fcn.1000ad70
mov eax, 0x420
jmp 0x100668ab
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [ebp - 0x34], 3
mov ebx, eax
mov edi, dword [ebp - 0x24]
jne 0x100668a9
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x20]
shr edx, 3
cmp edx, 0x3e8
jae 0x1006685a
mov edx, 0x3e8
jmp 0x10066863
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1006690c
cmp dword [ebp - 0x24], edi
jbe 0x10066895
call esi
mov edi, dword [ebp - 0x24]
mov ebx, eax
jmp 0x1006689e
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x20]
ja 0x100668c9
cmp dword [ebp - 0x34], 3
mov ecx, 0x2710
je 0x10066840
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 8
push str.ServiceManager::WaitToStopService
mov edx, 4
lea ecx, [ebp - 0x18c]
call fcn.1000aed0
add esp, 4
mov dword [ebp - 4], 3
cmp byte [eax + 0x48], 0
je 0x100668fa
mov edx, str.Timeout_waiting_for_service_to_stop
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0x18c]
call fcn.1000ad70
mov eax, 0x42a
jmp 0x100668ab
push str.ServiceManager::WaitToStopService
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
jmp 0x1006679a
Function at 0x10066950
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014337b
mov eax, dword fs:[0]
push eax
sub esp, 0x154
push ebx
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x1006699d
lea edi, [esi + 0x6e]
jmp 0x10066a98
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf01ff
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100669cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x10066a98
push ecx
push esi
call fcn.10066730
mov edi, eax
test edi, edi
jne 0x10066a98
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10066a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ServiceManager::Start
mov edx, 4
lea ecx, [ebp - 0xb8]
mov edi, eax
call fcn.1000aed0
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 0
cmp byte [ebx + 0x48], 0
je 0x10066a28
mov edx, str.StartService_err
mov ecx, ebx
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x48], 0
je 0x10066a3c
push eax
mov ecx, ebx
call fcn.100201d0
lea ecx, [ebp - 0xb8]
call fcn.1000ad70
mov ebx, dword [ebp - 0x10]
jmp 0x10066a98
push str.ServiceManager::Start
mov edx, 0x10
lea ecx, [ebp - 0x160]
call fcn.1000aed0
add esp, 4
mov dword [ebp - 4], 1
cmp byte [eax + 0x48], 0
je 0x10066a7d
mov edx, str.Service_start_pending...
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ad70
push ecx
push esi
call fcn.100664a0
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100673b0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10186438
push 0x10117430
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1019a128]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
push 0x2c
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10067554
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1006751e
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x1006751e
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x1006750b
xor edi, edi
mov dword [ebp - 0x50], edi
nop
cmp edi, dword [ebp - 0x24]
jae 0x10067548
lea eax, [edi + edi*8]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [esi + eax*4 + 0x10]
movups xmmword [ebp - 0x74], xmm0
mov eax, dword [esi + eax*4 + 0x20]
mov dword [ebp - 0x64], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x1006750b
mov dword [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1006750b
cmp dword [ebp - 0x44], 1
je 0x10067522
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x48]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1006750b
cmp dword [ebp - 0x44], 1
je 0x10067522
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x100674d1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1019a128
call fcn.1011a090
add esp, 0xc
xor eax, eax
jmp 0x10067559
mov dword [ebp - 4], 0
call fcn.10067540
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x10067480
mov dword [ebp - 4], 0xfffffffe
call fcn.1006757a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 4
Function at 0x10067590
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40000000
xor esi, esi
mov dword [ebp - 0x214], eax
push esi
push esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x100675cb
lea edi, [esi + 0x6e]
jmp 0x10067649
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100675f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x10067649
jmp 0x100675f6
xor edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10117ff0
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1011bd6a
add esp, 0x18
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
mov ecx, 0x42a
cmove edi, ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101157bc
mov esp, ebp
pop ebp
ret 4

Function at 0x10067710
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101434e0
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x1006775a
lea edi, [esi + 0x6e]
jmp 0x100677fa
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10067783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x100677fa
jmp 0x10067785
xor edi, edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100677fa
push str.ServiceManager::Enable
lea edx, [eax + 4]
lea ecx, [ebp - 0xb4]
call fcn.1000aed0
add esp, 4
mov edi, eax
mov dword [ebp - 4], 0
cmp byte [edi + 0x48], 0
je 0x100677d6
mov edx, str.ChangeServiceConfig_err
mov ecx, edi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x48], 0
je 0x100677ea
push eax
mov ecx, edi
call fcn.100201d0
lea ecx, [ebp - 0xb4]
call fcn.1000ad70
mov edi, 0x42a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10069ba0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
call fcn.10069830
cmp dword [eax + 0x14], 8
jb 0x10069bc2
mov eax, dword [eax]
push eax
call fcn.1011259b
lea ecx, [esp + 0xc]
call fcn.100699b0
cmp dword [esp + 0x1c], 0
je 0x10069c25
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
push ecx
push 0xf003f
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
cmovae eax, dword [esp + 0x14]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10069c25
mov esi, dword [esp + 8]
push str.oobe_flow
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x10069c25
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.10002400
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x10078180
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10145676
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1007821a
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xe4]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x100781f4
mov edx, str.LookupPrivilegeValue_err
mov ecx, esi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x10078208
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xe4]
call fcn.1000ad70
xor al, al
jmp 0x1007831a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], 1
push eax
push 0x10
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push eax
push 0
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10078289
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xe4]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
cmp byte [esi + 0x48], 0
je 0x100781f4
mov edx, str.AdjustTokenPrivileges_1_err
jmp 0x100781ed
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x100782a8
or dword [ebp - 0x20], 2
jmp 0x100782ac
and dword [ebp - 0x20], 0xfffffffd
push 0
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10078318
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0x18c]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
cmp byte [esi + 0x48], 0
je 0x100782f5
mov edx, str.AdjustTokenPrivileges_2_err
mov ecx, esi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x10078309
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x18c]
call fcn.1000ad70
xor al, al
jmp 0x1007831a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x1007ac90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], esi
cmp byte [ecx + 8], 0
mov eax, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push 4
push eax
push 4
je 0x1007acd6
push edx
push dword [ecx + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
jmp 0x1007ace1
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1007ad5a
push 0x1d
push str.failed_winapi::reg::set_value
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10002c70
movups xmm0, xmmword [esp + 0x10]
mov dword [esi], edi
mov eax, esi
mov dword [esi + 4], 0x1019abc0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmmword [esi + 8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x18], xmm0
mov byte [esi + 0x20], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
pop edi
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov eax, esi
mov byte [esi + 0x20], 0
pop esi
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 8