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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a290
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x780784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0060c962
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005fa0c4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x473df0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
lea esi, [eax + 0x4c]
mov dword [ebp - 0xc], eax
xor bl, bl
cmp dword [esi + 0x14], 8
push edi
jb 0x473e0d
mov eax, dword [esi]
jmp 0x473e0f
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473e3a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x473e59
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x473e65
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x473edb
cmp dword [ebp - 4], 0
jl 0x473edb
jg 0x473e81
cmp dword [ebp - 8], 0xa00000
jb 0x473edb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
test eax, eax
je 0x473e95
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x473e9d
mov esi, dword [esi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x473ec9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x476fa0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67ace6
mov eax, dword fs:[0]
push eax
mov eax, 0x10040
call fcn.0060ce10
mov eax, dword [0x780784]
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 edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
push 0
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x10014], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4770fe
cmp dword [ebp - 0x10014], 0
jne 0x47702f
push 0x64
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x96
jl 0x476fe0
cmp dword [ebp - 0x10014], 0
je 0x4770fe
push 0
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4770fe
mov eax, dword [ebp - 0x10018]
and eax, 0xfffffffe
cmp eax, 0x10000
jae 0x47711c
xor ecx, ecx
mov word [ebp + eax - 0x10010], cx
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x10030]
call fcn.00474b60
cmp dword [ebp - 0x1001c], 8
lea ecx, [ebp - 0x10030]
mov eax, dword [ebp - 0x10020]
lea edx, [ebp - 0x10030]
cmovae ecx, dword [ebp - 0x10030]
cmovae edx, dword [ebp - 0x10030]
mov dword [ebp - 4], 0
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x10049]
push ecx
push eax
push edx
lea ecx, [ebp - 0x10048]
call fcn.00473ef0
lea eax, [ebp - 0x10048]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00474ec0
lea ecx, [ebp - 0x10048]
call fcn.00468830
lea ecx, [ebp - 0x10030]
call fcn.00468740
mov al, 1
jmp 0x477100
xor al, al
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.0060cdfa
mov esp, ebp
pop ebp
ret
call fcn.0060cd20
int3
Function at 0x477130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67ad18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x780784]
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]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
add ebx, edx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x18], 0
cmovae edi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x14], 7
push eax
call fcn.004717f0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push ebx
push edi
call fcn.00473f70
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae edx, dword [ebp - 0x28]
mov eax, edx
lea esi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4771d0
sub eax, esi
lea ecx, [ebp - 0x2c]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push edx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47721d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_send_data.__d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x785d70]
call fcn.0054e4f0
add esp, 0x18
xor bl, bl
jmp 0x47721f
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x477255
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47724b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4772b7
push edx
push ecx
call fcn.0060c992
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x477299
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47728f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4772b7
push edx
push ecx
call fcn.0060c992
add esp, 8
mov al, bl
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.0060cdfa
mov esp, ebp
pop ebp
ret
call fcn.0061883f
int3
Function at 0x479100
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x727cc0
push 0x60f4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x780784]
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
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push dword [0x785d7c]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x47929a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x479264
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x479264
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push esi
push 1
push dword [0x785d7c]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x479251
xor edi, edi
mov dword [ebp - 0x4c], edi
cmp edi, dword [ebp - 0x20]
jae 0x47928e
lea eax, [edi + edi*8]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [esi + eax*4 + 0x10]
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [esi + eax*4 + 0x20]
mov dword [ebp - 0x60], eax
push 0x24
movd eax, xmm1
push eax
push dword [0x785d78]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x479251
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x479251
cmp dword [ebp - 0x40], 1
je 0x479268
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x479251
cmp dword [ebp - 0x40], 1
je 0x479268
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x479217
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x780784
call fcn.0060f610
add esp, 0xc
xor eax, eax
jmp 0x47929f
mov dword [ebp - 4], 0
call fcn.00479286
inc edi
mov dword [ebp - 0x4c], edi
mov esi, dword [ebp - 0x50]
jmp 0x4791c3
mov dword [ebp - 4], 0xfffffffe
call fcn.004792be
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.0060cdfa
mov esp, ebp
pop ebp
ret
Function at 0x47a9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x47aa22
test edi, edi
je 0x47aa22
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a9c5
sub ecx, edx
je 0x47aa22
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00494e20
add esp, 8
test eax, eax
jne 0x47aa22
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0061de40
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x47aa22
push 0x6c5238
push edi
call fcn.00494c20
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x47aa35
push eax
call fcn.0061de50
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.0061d8b9
push edi
mov esi, eax
call fcn.0061d64f
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
Function at 0x47f460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67c728
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x780784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.0060c962
mov edi, eax
add esp, 4
test edi, edi
je 0x47f504
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.005fa0c4
add esp, 4
mov dword [edi + 4], eax
jmp 0x47f506
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6bb4e8]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.0047bc30
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x6bb4e8]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47f592
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x6bb4e8]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x47f58f
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x6bb4e8]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x47f5ae
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x47f5d1
cmp byte [ebp + 0xc], 0
je 0x47f5bd
push ebx
call fcn.005fa640
add esp, 4
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
test cl, 4
je 0x47f5dd
mov esi, 0x6c59dc
jmp 0x47f5ed
test cl, 2
mov esi, 0x6c59f4
mov eax, 0x6c5a0c
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0046a150
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.0046a670
push 0x74714c
lea eax, [ebp - 0x2c]
push eax
call fcn.0060e342
int3
Function at 0x482510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test ecx, ecx
je 0x4825a8
test esi, esi
je 0x4825a8
push ebx
lea eax, [ebp - 0x14]
xor bl, bl
push eax
movzx eax, byte [ebp + 0x18]
xor eax, 1
shl eax, 8
add eax, 0x101
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48258c
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48258c
mov eax, dword [ebp - 0x10]
mov bl, 1
mov dword [edi], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
Function at 0x4826b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x482700
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x482712
cmp eax, 2
jne 0x48286e
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
mov dword [ebp - 0x220], edi
je 0x482741
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov dword [ebp - 0x220], edi
mov word [edi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x48284b
nop dword [eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x48279e
add eax, 2
sub ecx, 1
jne 0x482790
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4827fc
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x4827ef
lea edi, [ebp - 0x20c]
mov eax, SysReAllocString
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x4827e9
movzx esi, word [edi + ecx]
test si, si
je 0x4827e9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4827d0
mov edi, dword [ebp - 0x220]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x224]
push ebx
push esi
call fcn.004826b0
add esp, 8
test al, al
je 0x48284b
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x482780
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x482700
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret
Function at 0x4839f0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x72aa80
push 0x60f4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x780784]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x483b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x483b50
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x483b50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x483b3d
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x483b7a
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 0x483b3d
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x483b3d
cmp dword [ebp - 0x40], 1
je 0x483b54
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x483b3d
cmp dword [ebp - 0x40], 1
je 0x483b54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x483b03
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x780784
call fcn.0060f610
add esp, 0xc
xor eax, eax
jmp 0x483b8b
mov dword [ebp - 4], 0
call fcn.00483b72
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x483ab2
mov dword [ebp - 4], 0xfffffffe
call fcn.00483baa
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.0060cdfa
mov esp, ebp
pop ebp
ret
Function at 0x485a30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.0060f310
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x485a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateToolhelp32Snapshot__Error:__d
push dword [0x76c548]
push 2
push str.WinSandboxingUtilities
push edi
call fcn.0054e4f0
add esp, 0x18
jmp 0x485bf5
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x485ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_Process32First__Error:__d
jmp 0x485bda
push 3
lea eax, [ebp - 0x538]
push str.explorer.exe
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x53c], eax
call fcn.00483890
push dword [ebp - 0x53c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00622884
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x538]
add esp, 0xc
cmp eax, ecx
je 0x485b20
push eax
call fcn.0061de50
add esp, 4
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x414]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x485b56
test dx, dx
je 0x485b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x485b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x485b30
xor eax, eax
jmp 0x485b5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x485b72
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x485b20
jmp 0x485b7d
mov eax, dword [ebp - 0x430]
cmp eax, 0xffffffff
jne 0x485b9b
push str.Failed_to_find_explorer_process_id
push dword [0x76c548]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.0054e4f0
add esp, 0x14
jmp 0x485bf1
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x485bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcess__Error:__d
jmp 0x485bda
push ebx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x485bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcessToken_of_explorer__Error:__d
push dword [0x76c548]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.0054e4f0
add esp, 0x18
test esi, esi
je 0x485bfc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x485c07
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret