joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c64c
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x1004d0f2
call fcn.10037cf1
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x1002c6e1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x1002c6d9
cmp esi, 0xffffffff
je 0x1002c6d9
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.10038cf0
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1002c6d5
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x1002c6d9
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1002c6be
lea eax, [ebp - 0x10]
call fcn.10002f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.100366e3
add ebp, 0x230
leave
ret 4

Function at 0x1002c706
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x1002c719
xor eax, eax
jmp 0x1002c772
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.10038cf0
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.1002abd2
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1002c76a
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1002abff
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x1002c853
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x1002c86c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call fcn.1002c778
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x1002c972
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.1002c64c
cmp dword [ebp - 0x10], esi
je 0x1002c863
push dword [ebp - 0x14]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1002c8a8
cmp eax, 0xffffffff
jne 0x1002c8b4
lea eax, [ebp - 0xc]
call fcn.10002f50
mov eax, esi
jmp 0x1002c865
lea ecx, [ebp - 4]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002c8a8
push esi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1002c964
mov edi, dword [ebp + 8]
call fcn.1002abd2
push 0x40
mov ebx, eax
lea eax, [ebp - 0x6c]
push esi
push eax
mov dword [ebp - 0x70], 0x44
call fcn.10038cf0
add esp, 0xc
mov dword [ebp - 0x44], 1
cmp dword [ebp + 0xc], esi
je 0x1002c915
push 5
pop eax
jmp 0x1002c917
xor eax, eax
mov word [ebp - 0x40], ax
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 8]
push 0x420
push esi
push esi
push esi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1002c955
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1002abff
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002c8a8
Function at 0x1002c9c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x1002cadf
cmp dword [ebp + 0xc], esi
je 0x1002cadf
cmp edi, esi
je 0x1002cadf
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov ebx, 0x10059bac
call fcn.1002d565
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
pop ecx
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
xor ebx, ebx
cmp eax, 2
jbe 0x1002ca34
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x30]
call fcn.1000a440
push dword [ebp - 0x30]
call fcn.10036b92
pop ecx
xor eax, eax
jmp 0x1002cae2
jne 0x1002ca69
push 1
lea esi, [ebp - 0x30]
call fcn.10007d66
cmp dword [eax + 0x18], 8
jb 0x1002ca4b
mov eax, dword [eax + 4]
jmp 0x1002ca4e
add eax, 4
push 0
lea esi, [ebp - 0x30]
mov dword [ebp + 8], eax
call fcn.10007d66
cmp dword [eax + 0x18], 8
jb 0x1002ca66
mov ebx, dword [eax + 4]
jmp 0x1002ca69
lea ebx, [eax + 4]
call fcn.1002abd2
mov dword [ebp - 4], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], 0x44
call fcn.10038cf0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x10
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1002cac6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call fcn.1002abff
lea esi, [ebp - 0x30]
call fcn.1000a440
push dword [ebp - 0x30]
call fcn.10036b92
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1002cc62
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x1002cc89
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100366e3
leave
ret 8
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x1002ccab
cmp esi, 0xffffffff
jne 0x1002ccbd
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.10002f50
mov eax, esi
pop esi
jmp 0x1002cc7b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10038cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x1002ccab
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.1002bcb2
xor esi, esi
inc esi
jmp 0x1002ccad
Function at 0x1002ce6f
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002cf04
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1002cf04
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1002cf03
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x1002cf03
cmp eax, ebx
jl 0x1002ced8
mov eax, 0x400000
jg 0x1002ced4
cmp ecx, eax
jbe 0x1002ced8
mov edi, eax
jmp 0x1002ceda
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1002cf03
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4

Function at 0x1002d16f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1002d216
cmp dword [ebp + 0xc], ebx
je 0x1002d216
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1002d215
lea eax, [esi + esi]
push edi
push eax
call fcn.10036fb3
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1002d214
push esi
push ebx
push edi
call fcn.10038cf0
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002d20d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10059bac
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002d20d
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
inc ebx
push edi
call fcn.10036ed6
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1002d927
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x1004e916
call fcn.10037cf1
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x810]
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
call fcn.10001eb4
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
cmp edi, ebx
je 0x1002da37
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.10038cf0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x1c], ebx
call edi
cmp dword [ebp - 0x1c], esi
je 0x1002d9c6
cmp dword [ebp - 0x1c], 2
jne 0x1002da37
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1002da37
cmp eax, 0x800
jbe 0x1002da03
add eax, 2
push eax
call fcn.10036fb3
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push ebx
push esi
call fcn.10038cf0
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
jmp 0x1002da1a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, esi
cmp esi, ebx
jne 0x1002da23
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call fcn.100021ca
cmp esi, ebx
je 0x1002da37
push esi
call fcn.10036ed6
pop ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100366e3
add ebp, 0x804
leave
ret
Function at 0x1002da5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e8d5
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.10045780
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10015596
lea eax, [ebp - 0x201c]
push eax
xor ebx, ebx
inc ebx
push ebx
push edi
push dword [ebp - 0x2018]
mov dword [ebp - 0x202c], ebx
push esi
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x1002db88
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10038cf0
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x1002db6e
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10001ec7
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000a02e
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.100021ef
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002db22
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x1002dba6
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100366e3
leave
ret
Function at 0x1002dbc6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e8d5
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.10045780
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10015596
lea eax, [ebp - 0x201c]
push eax
push 8
push edi
push dword [ebp - 0x2018]
xor ebx, ebx
inc ebx
push esi
mov dword [ebp - 0x202c], ebx
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x1002dcf2
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10038cf0
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x1002dcd8
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10001ec7
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000a02e
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.100021ef
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1002dc8c
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x1002dd10
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100366e3
leave
ret

Function at 0x1002dd30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1002dd7f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1002de3d
Capabilities:
Check if file exists
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], 3
jbe 0x1002de51
cmp dword [ebp + 0xc], esi
ja 0x1002debf
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002debf
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1002deb7
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov eax, str.gxdte
push 1
push dword [ebp + 0xc]
push 2
push 0xf01ff
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.1002de1d
xor eax, eax
cmp dword [ebp - 4], esi
setne al
jmp 0x1002dec1
lea eax, [ebp - 8]
call fcn.1002de1d
xor eax, eax
pop esi
leave
ret 8

Function at 0x1002df27
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1002df9f
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1002df97
push esi
push 0xf01ff
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.1002ddef
pop esi
cmp dword [ebp - 8], ebx
je 0x1002df97
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x1002df97
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1002df97
inc ebx
lea eax, [ebp - 8]
call fcn.1002de1d
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1002e004
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1002e052
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1002e04a
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.1002ddef
cmp dword [ebp - 0xc], edi
je 0x1002e04a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.1002de1d
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1002e05a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x1002e0b4
push 4
push str.gxdte
lea esi, [ebp - 8]
call fcn.1002ddef
cmp dword [ebp - 8], edi
je 0x1002e0b4
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1002e0b4
cmp dword [ebp - 0x20], 4
jne 0x1002e0b4
inc ebx
lea eax, [ebp - 8]
call fcn.1002de1d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1002e0c3
Capabilities:
Enumerate services

Disassembly:
push 0xec
mov eax, 0x1004f341
call fcn.10037d5a
push 4
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [ebp - 0xb4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ebx
cmp eax, ebx
je 0x1002e2aa
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push ebx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push ebx
push ebx
push 3
push 0x30
push ebx
push eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xac], ebx
call esi
mov eax, dword [ebp - 0x94]
add eax, 0x200
push eax
call fcn.10036fb3
add dword [ebp - 0x94], 0x200
pop ecx
push ebx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push dword [ebp - 0x94]
mov dword [ebp - 0xa4], eax
push eax
push 3
push 0x30
push ebx
push dword [ebp - 0xb0]
call esi
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x98], ebx
jbe 0x1002e292
mov eax, dword [ebp - 0xa4]
add eax, 8
mov dword [ebp - 0x9c], eax
jmp 0x1002e1a7
mov edi, dword [ebp - 0xb4]
xor eax, eax
lea esi, [ebp - 0x74]
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], ax
call fcn.10001eb4
lea esi, [ebp - 0x58]
call fcn.10001eb4
lea esi, [ebp - 0x3c]
call fcn.10001eb4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 4], ebx
push dword [esi - 8]
lea eax, [ebp - 0x90]
push eax
call fcn.100021ca
push dword [esi - 4]
lea eax, [ebp - 0x74]
push eax
call fcn.100021ca
cmp dword [ebp - 0x78], 8
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x8c]
jae 0x1002e21f
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x3c]
call fcn.1002e2f8
mov esi, dword [edi + 0x14]
pop ecx
lea eax, [ebp - 0x90]
push eax
push dword [esi + 4]
push esi
call fcn.1002f4b3
mov ecx, dword [edi + 0x18]
mov edx, 0x2108421
sub edx, ecx
cmp edx, 1
jb 0x1002e2b6
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x90]
mov dword [ecx], eax
mov dword [ebp - 0xa8], 1
call fcn.10019463
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0x9c], 0x2c
cmp eax, dword [ebp - 0x98]
jb 0x1002e1a1
push dword [ebp - 0xa4]
call fcn.10036ed6
pop ecx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xa8]
call fcn.10037ddd
ret
push str.list_T__too_long
lea ecx, [ebp - 0xf8]
call fcn.10001e3e
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.10001066
push 0x1005fa60
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xdc], vtable.std::length_error.0
call fcn.1003782f
int3