joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008a691
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x101634cb
call fcn.1012b67a
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1008a6ad
xor eax, eax
jmp 0x1008a7c3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008a6a6
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0xa
mov ecx, esi
call fcn.1008a5ea
cmp dword [ebp - 0x10], 0
je 0x1008a6db
push dword [ebp + 0xc]
push edi
call dword [ebp - 0x10]
jmp 0x1008a7c3
and dword [ebp + 8], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
push eax
push 0x10183b64
mov ecx, esi
call fcn.1008a5b7
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008a6ff
or dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x1008a7ae
mov ecx, dword [eax]
push 0
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1008a7ae
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
and dword [ebp + 0xc], 0
push edx
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push 3
pop edi
test eax, eax
je 0x1008a74f
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x1008a747
cmp eax, edi
jne 0x1008a74f
test esi, esi
je 0x1008a7b0
mov dword [esi], ebx
jmp 0x1008a7b0
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
and dword [ebp + 0xc], 0
push edx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x1008a77c
mov eax, dword [ebp + 0xc]
and eax, 0xf00
cmp eax, 0x300
jne 0x1008a77c
test esi, esi
je 0x1008a7b0
mov dword [esi], edi
jmp 0x1008a7b0
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
and dword [ebp + 0xc], 0
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x1008a7ae
mov eax, dword [ebp + 0xc]
and eax, 0xf0000
cmp eax, 0x30000
jne 0x1008a7ae
test esi, esi
je 0x1008a7b0
mov dword [esi], 4
jmp 0x1008a7b0
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1008a7c1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
call fcn.1012b643
ret 8

Function at 0x1008ad99
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 0x14]
and eax, 0x100
or eax, 0xf003f
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1008addf
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1008ade4
Capabilities:
Delete registry value

Disassembly:
push 0x24
mov eax, 0x10163542
call fcn.1012b67a
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
mov ebx, edi
push eax
and ebx, 0x100
or ebx, 0xf003f
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.10116ff7
and dword [ebp - 4], 0
cmp esi, 5
jne 0x1008ae5b
push 1
shr edi, 8
lea ecx, [ebp - 0x30]
push 1
not edi
and edi, 1
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10117648
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1008ae76
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10117027
mov eax, esi
call fcn.1012b643
ret

Function at 0x1008b69c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
and esi, 0x100
push 0x33
mov dword [ebp - 4], edi
or esi, 0x20019
call fcn.10010082
pop ecx
test eax, eax
je 0x1008b6d3
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x1008b6e5
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008b74b
cmp dword [ebp - 4], edi
je 0x1008b74b
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push edi
lea eax, [ebp - 8]
mov dword [ebp + 0x10], edi
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008b743
cmp dword [ebp + 0x10], 0x800000
jae 0x1008b743
mov esi, dword [ebp + 0x18]
mov ecx, esi
push esi
push dword [ebp + 0x10]
call fcn.1008b1d1
lea eax, [ebp + 0x10]
push eax
push dword [esi]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008b743
xor edi, edi
inc edi
push dword [ebp - 4]
call fcn.10017c01
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1009c899
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1009cae2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009cb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1009cb08
xor al, al
jmp 0x1009cb1c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x100a076c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10134acf
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
and dword [ecx + 4], 0
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x18

Function at 0x100a08d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10137bcd
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
and dword [ecx + 4], 0
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x18

Function at 0x100a25b6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xffffffff
jne 0x100a25ca
mov eax, 0x80070057
jmp 0x100a25ff
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100a25e8
mov eax, 0x80004005
jmp 0x100a25ff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ebp
ret 0xc

Function at 0x100a26a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xffffffff
je 0x100a271d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100a271d
push esi
push 0x48
push 0
push ebx
call fcn.1012db70
add esp, 0xc
lea eax, [ebx + 8]
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test byte [ebp + 0x10], 1
mov esi, eax
jne 0x100a270a
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x100a270a
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x100a270a
push dword [edi + 0x10]
push eax
call fcn.101401ce
pop ecx
pop ecx
neg esi
sbb esi, esi
and esi, 0x7fffbffb
lea eax, [esi - 0x7fffbffb]
pop esi
jmp 0x100a2722
mov eax, 0x80004005
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x100a61e5
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x1014e6a3
call fcn.1012b6ae
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, 0x208
mov dword [ebp - 0x428], esi
xor ebx, ebx
push edi
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.1012db70
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.1012db70
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jne 0x100a6247
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x100a6268
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.10019f19
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1004c167
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
push ebx
push str.360pkg_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.100088c7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], 1
mov eax, esi
call fcn.1012b658
ret 8

Function at 0x100a6551
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x208
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call fcn.1012db70
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x100a65c3
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x100a65d7
push 3
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.100a764b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x214]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x210]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret 4
Function at 0x100a6ca8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
mov esi, ecx
lea edi, [ebp - 0x2c]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
jne 0x100a6ce3
mov eax, 0x80004005
jmp 0x100a6d24
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x1c]
add ecx, dword [ebp + 8]
shl eax, 0x14
cmp ecx, eax
ja 0x100a6d22
push 0x40
pop edi
push edi
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.1012db70
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x64
pop eax
sub eax, dword [ebp - 0x68]
cmp eax, dword [esi + 0x20]
jb 0x100a6d22
xor eax, eax
inc eax
jmp 0x100a6d24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret 4
Function at 0x100ad76d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016905c
mov eax, dword fs:[0]
push eax
mov eax, 0x10014
call fcn.1012ba20
mov eax, dword [0x102406a8]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10020], esi
inc ecx
mov dword [ebp - 0x1001c], ebx
mov eax, dword [0x10248928]
test cl, al
jne 0x100ad7f0
or eax, ecx
mov dword [0x10248928], eax
mov dword [ebp - 4], ecx
call fcn.10007945
push eax
mov ecx, 0x10248924
call fcn.10008bfd
mov byte [ebp - 4], 1
push 0x1017efd8
call fcn.1012b5d3
pop ecx
mov byte [ebp - 4], bl
mov eax, dword [0x10248928]
test al, 2
jne 0x100ad825
or eax, 2
mov dword [0x10248928], eax
mov dword [ebp - 4], 3
call fcn.10007945
push eax
mov ecx, 0x1024892c
call fcn.10008bfd
mov byte [ebp - 4], 3
push 0x1017efb4
call fcn.1012b5d3
pop ecx
mov byte [ebp - 4], bl
cmp dword [0x1022716c], 0
je 0x100ad8ec
call fcn.100b2d98
test eax, eax
je 0x100ad8ec
lea eax, [ebp - 0x10018]
mov dword [0x1022716c], ebx
push str._programfiles_
push eax
call fcn.100ad76d
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ecx, 0x10248924
push eax
call fcn.10010aef
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10018]
lea ecx, [ecx - 0x10]
call fcn.100078bc
lea eax, [ebp - 0x10018]
push str._commonprogramfiles_
push eax
call fcn.100ad76d
pop ecx
pop ecx
mov dword [ebp - 4], 7
mov ecx, 0x1024892c
push eax
call fcn.10010aef
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10018]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov ecx, 0x10248924
call fcn.1001f111
push 0x101bd7f8
mov ebx, str.__x86_
mov ecx, 0x10248924
push ebx
call fcn.10015b5c
mov ecx, 0x1024892c
call fcn.1001f111
push 0x101bd7f8
push ebx
mov ecx, 0x1024892c
call fcn.10015b5c
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10014]
call fcn.100088c7
mov dword [ebp - 4], 9
cmp dword [0x10248824], 0
je 0x100ad94b
lea ecx, [ebp - 0x10014]
call fcn.1001f111
mov eax, dword [0x10248924]
cmp dword [eax - 0xc], 0
je 0x100ad92f
push eax
push str._programfiles_
lea ecx, [ebp - 0x10014]
call fcn.10015b5c
mov eax, dword [0x1024892c]
cmp dword [eax - 0xc], 0
je 0x100ad94b
push eax
push str._commonprogramfiles_
lea ecx, [ebp - 0x10014]
call fcn.10015b5c
xor eax, eax
mov word [ebp - 0x10010], ax
lea eax, [ebp - 0x10010]
push 0x8000
push eax
push dword [ebp - 0x10014]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x10010]
mov ecx, esi
push eax
call fcn.100088c7
mov dword [ebp - 0x1001c], 1
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10014]
add ecx, 0xfffffff0
call fcn.100078bc
mov eax, esi
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.1012b632
leave
ret
Function at 0x100b2a5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 8
call fcn.10010082
pop ecx
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
test eax, eax
je 0x100b2a84
call eax
jmp 0x100b2a8a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100b2ad8
push ebx
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.10010082
pop ecx
test eax, eax
je 0x100b2aad
lea ecx, [ebp - 8]
push ecx
push edi
call eax
jmp 0x100b2ab8
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
mov ebx, eax
call fcn.10049da5
test ebx, ebx
pop ebx
je 0x100b2ad8
cmp dword [ebp - 4], esi
ja 0x100b2ad3
cmp dword [ebp - 8], 0xa00000
jbe 0x100b2ad8
xor eax, eax
inc eax
jmp 0x100b2ada
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100b59a9
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebx + 0xa9c]
call fcn.1006c183
pop ecx
push edi
test esi, esi
je 0x100b59e5
test eax, eax
je 0x100b59d2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x100b59d7
call fcn.10010313
test eax, eax
je 0x100b59fa
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x18]
jmp 0x100b59fa
test eax, eax
je 0x100b59f1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x100b59f6
call fcn.10010313
test eax, eax
jne 0x100b5a01
xor eax, eax
jmp 0x100b5a82
xor esi, esi
mov ecx, ebx
inc esi
push esi
push edi
call fcn.100b5a89
push 2
push edi
mov ecx, ebx
call fcn.100b5a89
cmp dword [ebx + 0x28], 0
je 0x100b5a31
push edi
call fcn.10073b06
mov ecx, eax
call fcn.10073a45
test eax, eax
je 0x100b5a31
mov dword [ebx + 0x24], esi
push esi
add ebx, 0x1c
push ebx
push edi
call fcn.1006c202
add esp, 0xc
test eax, eax
je 0x100b5a50
push edi
call fcn.101103e8
mov ecx, eax
call fcn.101103b3
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100b5a64
push 2
pop eax
jmp 0x100b5a82
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebx], eax
mov dword [0x1024c32c], 0x58
call esi
mov dword [0x1024c330], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100be55a
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 7
pop ecx
push 2
xor eax, eax
lea edi, [ebp - 0x20]
push ebx
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100be5d8
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100be5d3
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100be5d0
cmp dword [ebp - 0x20], 0x10
je 0x100be5c1
cmp dword [ebp - 0x20], 0x20
jne 0x100be5d0
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
push esi
call edi
push dword [ebp - 0x24]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret 4
Function at 0x100c7fb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x2a0]
push eax
push str.__dsconfig_scannonpe_enable
push edi
call fcn.100c5b49
lea esi, [ebx + 0x2a4]
mov ecx, ebx
push esi
push str.__dsconfig_scannonpe_ext
push edi
call fcn.100c87db
push 0x7c
push esi
mov ecx, ebx
call fcn.1006f574
lea esi, [ebx + 0x2b0]
mov ecx, ebx
push esi
push str.__dsconfig_scannonpe_exclude_folder
push edi
mov dword [ebp - 0x418], esi
call fcn.100c87db
push 0x7c
push esi
mov ecx, ebx
call fcn.1006f574
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
sar ebx, 2
test ebx, ebx
je 0x100c8094
push 0x410
xor esi, esi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push 0x20
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [ebp - 0x418]
mov ecx, dword [edi]
mov eax, esi
shl eax, 2
push 0
add ecx, eax
push str._IECache_
call fcn.100147fe
test eax, eax
js 0x100c808f
mov ecx, dword [edi]
lea eax, [ebp - 0x414]
push eax
mov eax, esi
shl eax, 2
push str._IECache_
add ecx, eax
call fcn.10015b5c
inc esi
cmp esi, ebx
jb 0x100c805c
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1012b632
leave
ret 4
Function at 0x100ce6c7
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e676
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
mov eax, dword [0x102406a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 3
lea ecx, [esi + 0x28]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.10022147
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.10022147
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.1006cf70
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.10008abd
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10008abd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x100d1985
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f076
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x102406a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
and dword [edx + 4], 0
and dword [ebp - 4], 0
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
or dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x100d2b26
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], eax
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100d2ba8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100d2ba1
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x228], ebx
je 0x100d2b8f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100d2b74
jmp 0x100d2ba0
mov ecx, dword [ebp - 0x234]
xor edi, edi
mov eax, dword [ebp - 0x218]
inc edi
mov dword [ecx], eax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret 8