joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cbc98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x806f14]
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, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x49a745
push esi
push esi
push esi
push 2
call fcn.0049e0e0
xor al, al
jmp 0x49a8af
call fcn.00499940
push 2
push 0
push esi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.0068c7ab
push esi
call fcn.0068ce52
push 0
push 0
push esi
mov ebx, eax
call fcn.0068c7ab
add esp, 0x1c
test ebx, ebx
jg 0x49a791
push 0
push 0
push 0
push 0xd
mov ecx, edi
call fcn.0049e0e0
xor al, al
jmp 0x49a8af
mov dword [ebp - 0x18], 0x80cfc0
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00498df0
lea eax, [ebx + 1]
push eax
call fcn.0066c4fe
push esi
push 1
push ebx
push eax
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
call fcn.0068c399
add esp, 0x14
cmp eax, 1
je 0x49a7ea
push dword [ebp - 0x1c]
call fcn.0066c507
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.0049e0e0
xor bl, bl
jmp 0x49a899
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov esi, eax
mov byte [eax + ebx], 0
mov al, byte [eax]
test al, al
je 0x49a857
nop dword [eax + eax]
cmp al, 0xa
jne 0x49a818
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00498cb0
inc esi
mov ecx, esi
jmp 0x49a851
cmp al, 0xd
jne 0x49a850
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x49a82e
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00498cb0
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0xa
push eax
lea ecx, [ebp - 0x18]
call fcn.00498cb0
xor eax, eax
cmp byte [esi + 1], 0xa
sete al
inc eax
add esi, eax
mov ecx, esi
jmp 0x49a851
inc esi
mov al, byte [esi]
test al, al
jne 0x49a800
sub esi, ecx
je 0x49a865
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.00498cb0
push dword [ebp - 0x1c]
call fcn.0066c507
mov esi, dword [edi]
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 8
push dword [ebp + 0xc]
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0
push eax
call dword [0x71e5fc]
mov ecx, edi
call esi
cmp byte [edi + 0x2c], 0
je 0x49a897
xor bl, bl
jmp 0x49a899
mov bl, 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x80cfc0
je 0x49a8ad
push ecx
call fcn.0066c507
add esp, 4
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.0066c50c
mov esp, ebp
pop ebp
ret 8
Function at 0x4a7e80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce079
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.0066c8f0
mov eax, dword [0x806f14]
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 dword [ebp - 0x1058], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0xf
mov byte [ebp - 0x104c], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x4a7faf
mov eax, dword [ebp - 0x1014]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x1054], eax
test eax, eax
je 0x4a7fa3
nop dword [eax]
mov edi, dword [ebx + 4]
mov eax, dword [ebp + esi*4 - 0x1010]
mov dword [ebp - 0x1050], eax
cmp edi, dword [ebx + 8]
je 0x4a7f8b
mov dword [edi], eax
lea ecx, [edi + 4]
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x105c], edi
push eax
call fcn.0048d880
mov eax, dword [ebp - 0x1034]
lea ecx, [edi + 0x24]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x1030]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x102c]
push eax
mov byte [ebp - 4], 1
call fcn.0048d880
add dword [ebx + 4], 0x3c
mov byte [ebp - 4], 0
jmp 0x4a7f9a
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
push edi
call fcn.004a59e0
inc esi
cmp esi, dword [ebp - 0x1054]
jb 0x4a7f30
mov ecx, dword [ebp - 0x1058]
push ebx
call fcn.004a9ad0
lea ecx, [ebp - 0x1050]
call fcn.004a73d0
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.0066c50c
mov esp, ebp
pop ebp
ret 4
Function at 0x4ab330
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push eax
push str._s_failed_w_err_0x_08lx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004ab2a0
add esp, 0x14
push dword [edi + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4ab3b0
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
mov dword [ebp - 0x214], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 8

Function at 0x4ab3d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push dword [edi + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4ab422
mov ecx, dword [edi + 4]
lea eax, [ebp - 0xc]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 8
Function at 0x4ab6a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 1
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4ab6fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004a59b0
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
push esi
push 0x10024
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4ab723
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x4ab7cb
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4ab7ac
push edi
push str.Stopping__s.
call fcn.004a59b0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4ab78f
nop dword [eax]
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x4ab792
push 0x72bd10
call fcn.004a59b0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4ab760
mov eax, dword [ebp - 0x1c]
push edi
cmp eax, 1
jne 0x4ab79f
push 0x72bd14
jmp 0x4ab7a4
push str._n_s_failed_to_stop._n
call fcn.004a59b0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4ab7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x72bd68
jmp 0x4ab7cb
push edi
push str._s_is_removed._n
call fcn.004a59b0
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4ab7e5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4b1b00
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d06c6
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x218]
push 0x104
push ecx
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4b1cf7
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004bf860
add esp, 8
test al, al
je 0x4b1cec
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
lea edi, [ebp - 0x230]
cmovae edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
lea eax, [edx + eax*2]
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x250], eax
sub eax, edi
sar eax, 1
push eax
call fcn.004aed20
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
push dword [ebp - 0x250]
push edi
call fcn.0049e680
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], edx
jae 0x4b1ca2
movups xmm0, xmmword [ebp - 0x248]
movq xmm1, qword [ecx + 0x10]
movups xmm2, xmmword [ecx]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x238]
movq qword [ebp - 0x258], xmm1
mov edx, dword [ebp - 0x254]
movq qword [ecx + 0x10], xmm0
movq qword [ebp - 0x238], xmm1
movups xmmword [ebp - 0x268], xmm2
movups xmmword [ebp - 0x248], xmm2
cmp edx, 0x10
jb 0x4b1c93
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b1c89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b1d13
push edx
push ecx
call fcn.0066c54d
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.00489050
mov al, 1
jmp 0x4b1cf9
push dword [ebp - 0x238]
cmp edx, 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0049f560
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x4b1c93
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b1c89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b1d13
jmp 0x4b1c89
lea ecx, [ebp - 0x230]
call fcn.00489050
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
call fcn.0068bce4
int3
Function at 0x4b43e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d0968
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x806f14]
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.0066c51d
mov edi, eax
add esp, 4
test edi, edi
je 0x4b4484
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0066e9f4
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b4486
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 [0x71e5fc]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.004b0550
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x71e5fc]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b4512
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x71e5fc]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4b450f
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x71e5fc]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x4b452e
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 0x4b4551
cmp byte [ebp + 0xc], 0
je 0x4b453d
push ebx
call fcn.0066ef70
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 0x4b455d
mov esi, 0x72c148
jmp 0x4b456d
test cl, 2
mov esi, 0x72c160
mov eax, 0x72c178
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0048ab10
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.0048aff0
push 0x7bc470
lea eax, [ebp - 0x2c]
push eax
call fcn.0068281e
int3

Function at 0x4b8740
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x102
push 0
push 0x72c9e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b878a
cmp eax, 2
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
push esi
push str.newInstall
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4b89d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x806f14]
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 0x4b8a68
test esi, esi
je 0x4b8a68
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 0x4b8a4c
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 0x4b8a4c
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.0066c50c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4b8c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x14]
or esi, 0xffffffff
push eax
push 0x101
push 0
push 0x72c9e8
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b8cf9
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 str.newInstall
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b8cf9
mov esi, dword [ebp - 0x10]
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4b8d1c
cmp esi, 1
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4b8e80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x806f14]
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 0x4b8ed0
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 0x4b8ee2
cmp eax, 2
jne 0x4b903e
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
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 0x4b8f11
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 0x4b901b
nop dword [eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x4b8f6e
add eax, 2
sub ecx, 1
jne 0x4b8f60
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4b8fcc
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x4b8fbf
lea edi, [ebp - 0x20c]
mov eax, SysReAllocString
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x4b8fb9
movzx esi, word [edi + ecx]
test si, si
je 0x4b8fb9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4b8fa0
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.004b8e80
add esp, 8
test al, al
je 0x4b901b
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 0x4b8f50
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 0x4b8ed0
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4b9f80
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x79ac80
push 0x682a00
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x806f14]
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 0x4ba116
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4ba0e0
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 0x4ba0e0
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 0x4ba0cd
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x4ba10a
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 0x4ba0cd
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 0x4ba0cd
cmp dword [ebp - 0x40], 1
je 0x4ba0e4
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 0x4ba0cd
cmp dword [ebp - 0x40], 1
je 0x4ba0e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x4ba093
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x806f14
call fcn.00682b60
add esp, 0xc
xor eax, eax
jmp 0x4ba11b
mov dword [ebp - 4], 0
call fcn.004ba102
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x4ba042
mov dword [ebp - 4], 0xfffffffe
call fcn.004ba13a
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.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4bbc60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x806f14]
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.00682620
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bbcc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateToolhelp32Snapshot__Error:__d
push dword [0x7d13b0]
push 2
push str.WinSandboxingUtilities
push edi
call fcn.004c2f40
add esp, 0x18
jmp 0x4bbe25
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4bbcf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_Process32First__Error:__d
jmp 0x4bbe0a
push 3
lea eax, [ebp - 0x538]
push str.explorer.exe
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x53c], eax
call fcn.004b9e20
push dword [ebp - 0x53c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00697afb
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x538]
add esp, 0xc
cmp eax, ecx
je 0x4bbd50
push eax
call fcn.006970b0
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 0x4bbd86
test dx, dx
je 0x4bbd82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bbd86
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bbd60
xor eax, eax
jmp 0x4bbd8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bbda2
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4bbd50
jmp 0x4bbdad
mov eax, dword [ebp - 0x430]
cmp eax, 0xffffffff
jne 0x4bbdcb
push str.Failed_to_find_explorer_process_id
push dword [0x7d13b0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.004c2f40
add esp, 0x14
jmp 0x4bbe21
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4bbded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcess__Error:__d
jmp 0x4bbe0a
push ebx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bbe21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcessToken_of_explorer__Error:__d
push dword [0x7d13b0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.004c2f40
add esp, 0x18
test esi, esi
je 0x4bbe2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4bbe37
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.0066c50c
mov esp, ebp
pop ebp
ret