joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a61f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cb6d9
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.00669ec0
mov eax, dword [0x80236c]
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 0x4a631f
mov eax, dword [ebp - 0x1014]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x1054], eax
test eax, eax
je 0x4a6313
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 0x4a62fb
mov dword [edi], eax
lea ecx, [edi + 4]
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x105c], edi
push eax
call fcn.0048c1e0
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.0048c1e0
add dword [ebx + 4], 0x3c
mov byte [ebp - 4], 0
jmp 0x4a630a
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
push edi
call fcn.004a3ec0
inc esi
cmp esi, dword [ebp - 0x1054]
jb 0x4a62a0
mov ecx, dword [ebp - 0x1058]
push ebx
call fcn.004a7db0
lea ecx, [ebp - 0x1050]
call fcn.004a5740
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.00669adc
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9610
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x80236c]
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.004a9580
add esp, 0x14
push dword [edi + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4a9690
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.00669adc
mov esp, ebp
pop ebp
ret 8

Function at 0x4a96b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x80236c]
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 0x4a9702
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.00669adc
mov esp, ebp
pop ebp
ret 8
Function at 0x4a9980
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x80236c]
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 0x4a99de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004a3e90
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669adc
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 0x4a9a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x4a9aab
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4a9a8c
push edi
push str.Stopping__s.
call fcn.004a3e90
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 0x4a9a6f
nop dword [eax]
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x4a9a72
push 0x727af8
call fcn.004a3e90
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 0x4a9a40
mov eax, dword [ebp - 0x1c]
push edi
cmp eax, 1
jne 0x4a9a7f
push 0x727afc
jmp 0x4a9a84
push str._n_s_failed_to_stop._n
call fcn.004a3e90
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4a9aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x727b50
jmp 0x4a9aab
push edi
push str._s_is_removed._n
call fcn.004a3e90
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4a9ac5
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.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4afe20
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cdd16
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x80236c]
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 0x4b0017
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.004bdb80
add esp, 8
test al, al
je 0x4b000c
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.004ad040
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
push dword [ebp - 0x250]
push edi
call fcn.0049d000
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], edx
jae 0x4affc2
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 0x4affb3
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4affa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0033
push edx
push ecx
call fcn.00669b1d
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.004879b0
mov al, 1
jmp 0x4b0019
push dword [ebp - 0x238]
cmp edx, 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0049d6d0
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x4affb3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4affa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0033
jmp 0x4affa9
lea ecx, [ebp - 0x230]
call fcn.004879b0
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.00669adc
mov esp, ebp
pop ebp
ret
call fcn.006892c4
int3
Function at 0x4b2700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cdfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x80236c]
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.00669aed
mov edi, eax
add esp, 4
test edi, edi
je 0x4b27a4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0066bfc4
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b27a6
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 [0x71a5f8]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.004ae870
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x71a5f8]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b2832
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x71a5f8]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4b282f
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x71a5f8]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x4b284e
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 0x4b2871
cmp byte [ebp + 0xc], 0
je 0x4b285d
push ebx
call fcn.0066c540
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 0x4b287d
mov esi, 0x727f30
jmp 0x4b288d
test cl, 2
mov esi, 0x727f48
mov eax, 0x727f60
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00489470
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00489950
push 0x7b7c18
lea eax, [ebp - 0x2c]
push eax
call fcn.0067fdfe
int3

Function at 0x4b6a60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x80236c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x102
push 0
push 0x7287c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b6aaa
cmp eax, 2
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669adc
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.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4b6cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x80236c]
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 0x4b6d88
test esi, esi
je 0x4b6d88
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 0x4b6d6c
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 0x4b6d6c
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.00669adc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4b6fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x80236c]
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 0x7287c0
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b7019
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 0x4b7019
mov esi, dword [ebp - 0x10]
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4b703c
cmp esi, 1
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669adc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4b71a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x80236c]
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 0x4b71f0
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 0x4b7202
cmp eax, 2
jne 0x4b735e
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669adc
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 0x4b7231
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 0x4b733b
nop dword [eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x4b728e
add eax, 2
sub ecx, 1
jne 0x4b7280
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4b72ec
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x4b72df
lea edi, [ebp - 0x20c]
mov eax, SysReAllocString
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x4b72d9
movzx esi, word [edi + ecx]
test si, si
je 0x4b72d9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4b72c0
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.004b71a0
add esp, 8
test al, al
je 0x4b733b
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 0x4b7270
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 0x4b71f0
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4b82a0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x796858
push 0x67ffe0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x80236c]
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 0x4b8436
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b8400
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 0x4b8400
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 0x4b83ed
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x4b842a
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 0x4b83ed
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 0x4b83ed
cmp dword [ebp - 0x40], 1
je 0x4b8404
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 0x4b83ed
cmp dword [ebp - 0x40], 1
je 0x4b8404
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x4b83b3
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x80236c
call fcn.00680140
add esp, 0xc
xor eax, eax
jmp 0x4b843b
mov dword [ebp - 4], 0
call fcn.004b8422
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x4b8362
mov dword [ebp - 4], 0xfffffffe
call fcn.004b845a
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.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4b9f80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x80236c]
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.0067fc00
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b9fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateToolhelp32Snapshot__Error:__d
push dword [0x7cd3b0]
push 2
push str.WinSandboxingUtilities
push edi
call fcn.004c1270
add esp, 0x18
jmp 0x4ba145
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4ba012
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_Process32First__Error:__d
jmp 0x4ba12a
push 3
lea eax, [ebp - 0x538]
push str.explorer.exe
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x53c], eax
call fcn.004b8140
push dword [ebp - 0x53c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00695a0b
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x538]
add esp, 0xc
cmp eax, ecx
je 0x4ba070
push eax
call fcn.00694690
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 0x4ba0a6
test dx, dx
je 0x4ba0a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ba0a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ba080
xor eax, eax
jmp 0x4ba0ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ba0c2
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4ba070
jmp 0x4ba0cd
mov eax, dword [ebp - 0x430]
cmp eax, 0xffffffff
jne 0x4ba0eb
push str.Failed_to_find_explorer_process_id
push dword [0x7cd3b0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.004c1270
add esp, 0x14
jmp 0x4ba141
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4ba10d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcess__Error:__d
jmp 0x4ba12a
push ebx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ba141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcessToken_of_explorer__Error:__d
push dword [0x7cd3b0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.004c1270
add esp, 0x18
test esi, esi
je 0x4ba14c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4ba157
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.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x4bb600
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1093
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x80236c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004bdd50
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0049d6d0
sub esp, 0x48
lea eax, [ebp + 8]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x44], esi
push eax
call fcn.0048c1e0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.0048c1e0
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.0048c1e0
call fcn.004bb7a0
mov edi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
push eax
push edi
mov byte [ebp - 0x40], 0
call sym.AGMService.exe_AGDServiceConvertAGDStatusTypeEnumToString
add esp, 0x50
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x40]
lea ecx, [ebp + 8]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp + 0x20]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 0x10
push esi
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
push edx
cmovae eax, dword [ebp + 0x20]
push ecx
push eax
call sym.AGMService.exe_RSDServiceRecordStatus
mov edx, dword [ebp - 0x2c]
add esp, 0x14
cmp edx, 0x10
jb 0x4bb71f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb715
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb798
push edx
push ecx
call fcn.00669b1d
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x4bb761
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb757
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb798
push edx
push ecx
call fcn.00669b1d
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0049e920
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669adc
mov esp, ebp
pop ebp
ret
call fcn.006892c4
int3