joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401be2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
push edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call fcn.004019ef
cmp eax, esi
jbe 0x401c64
push eax
push esi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x218], eax
cmp eax, esi
je 0x401c56
lea ecx, [ebp - 0x214]
push ecx
push 0xe
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
or eax, eax
jne 0x401c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.etKnownFolderPathForInteractiveUser___could_not_open_the_interactive_process_token:__d
lea eax, [ebp - 0x210]
push eax
call fcn.00401423
add esp, 0xc
jmp 0x401c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetKnownFolderPathForInteractiveUser___could_not_open_the_interactive_process:__d
jmp 0x401c45
lea eax, [ebp - 0x210]
push str.GetKnownFolderPathForInteractiveUser___could_not_find_an_interactive_process_
push eax
call fcn.00401423
pop ecx
pop ecx
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
call fcn.00402daa
push str.SHELL32.DLL
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp eax, esi
je 0x401d6e
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x401d4f
mov eax, 0x41e4c8
push 0x10
pop ecx
push eax
pop edi
push eax
pop esi
sub edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401cce
sbb edx, edx
sbb edx, 0xffffffff
or edx, edx
jne 0x401d2b
push 0x1c
pop eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push dword [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
pop edi
or edi, edi
js 0x401d60
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cfc
sbb eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
mov dword [ebx], eax
call fcn.0040cc67
add esp, 0xc
jmp 0x401d60
push 0x10
push eax
pop esi
pop ecx
mov edi, 0x41e4b8
sub eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401d40
sbb eax, eax
sbb eax, 0xffffffff
or eax, eax
jne 0x401d48
push 0x1a
jmp 0x401cd4
mov edi, 0x80070057
jmp 0x401d60
push ebx
push dword [ebp - 0x214]
push esi
push 0x41e4c8
call eax
push eax
pop edi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esi, esi
cmp dword [ebp - 0x214], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401d84
push dword [ebp - 0x214]
call esi
cmp dword [ebp - 0x218], 0
je 0x401d95
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
push edi
pop eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040b965
leave
ret
Function at 0x402040
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x418
mov eax, 0x41c978
call fcn.0041b8a8
push 0x104
lea eax, [ebp - 0x420]
sub ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
pop esi
cmp esi, ebx
je 0x402100
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or eax, eax
jne 0x402100
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.YSearchUtil
lea eax, [ebp - 0x218]
push eax
call edi
push str.CrashLogs
lea eax, [ebp - 0x218]
push eax
call edi
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x4020d0
cmp eax, 0xb7
jne 0x402100
push ebx
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x424], esp
push eax
mov edi, str.detailedDumps
call fcn.00402d3a
call fcn.0040116d
mov ebx, dword [ebp + 8]
push eax
lea edi, [ebp - 0x218]
push esi
pop ecx
call fcn.00404027
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
call fcn.0041b8f2
ret
Function at 0x4026a4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x41c955
call fcn.0041b83f
sub esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [0x428020]
mov ecx, 0x428020
mov dword [ebp - 0x14], pe_nt_image_headers32
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
call fcn.00402678
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push dword [eax]
call ebx
lea esi, [ebp - 0x10]
push eax
pop edi
call fcn.00402644
cmp dword [ebp - 0x18], 1
je 0x402710
cmp dword [ebp - 0x18], 2
je 0x402710
push 0xd
pop edi
cmp edi, 0xea
jne 0x402742
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
call fcn.00402678
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [eax]
call ebx
lea esi, [ebp - 0x10]
push eax
pop edi
call fcn.00402644
or edi, edi
jne 0x4027bc
cmp dword [ebp - 0x18], 2
jne 0x4027c4
mov eax, dword [0x428020]
mov ecx, 0x428020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebx - 0xc]
add edi, 0x100
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00402678
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push ebx
call esi
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jb 0x4027a0
lea edi, [eax + 0xa]
push edi
lea eax, [ebp + 0x10]
call fcn.00402678
push eax
push ebx
call esi
lea eax, [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.0040291a
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00402daa
jmp 0x4027c4
lea esi, [ebp - 0x10]
call fcn.00402b13
mov esi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.004028be
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.00402daa
push edi
pop eax
call fcn.0041b8de
ret 0xc

Function at 0x4029c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push eax
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
or eax, eax
je 0x402a1e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
pop edi
or edi, edi
je 0x402a10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402a0c
cmp edi, eax
jae 0x402a10
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4029fe
cmp edi, eax
jb 0x402a14
sub eax, eax
jmp 0x402a1d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x402f61
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push eax
pop esi
or esi, esi
je 0x402ff1
push ebx
push esi
call fcn.0040b94f
pop ecx
push eax
pop ebx
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
or eax, eax
je 0x402fe9
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x420674
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
or eax, eax
je 0x402fe9
mov eax, dword [ebp - 8]
or eax, eax
je 0x402fe9
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call 0x40cce7
add esp, 0x1c
push ebx
call fcn.0040ca56
pop ecx
pop ebx
pop esi
leave
ret

Function at 0x403107
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x348], 8
movzx eax, word [ebp - 0x348]
mov dword [ebp - 0x324], str.Intel
mov dword [ebp - 0x320], str.Mips
mov dword [ebp - 0x31c], str.Alpha
mov dword [ebp - 0x318], 0x420fd4
mov dword [ebp - 0x314], 0x420fdc
mov dword [ebp - 0x310], 0x420fe4
mov dword [ebp - 0x30c], str.IA64
mov dword [ebp - 0x308], str.Alpha64
mov esi, 0x80
jae 0x4031a7
push dword [ebp + eax*4 - 0x324]
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0040cc67
add esp, 0xc
jmp 0x4031bd
push eax
push str._Unknown_Type:_0x_x_
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0040bdcb
add esp, 0x10
cmp word [ebp - 0x348], 0
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x31c], str.80386
mov dword [ebp - 0x318], str.80486
mov dword [ebp - 0x314], str.Pentium
mov dword [ebp - 0x310], str.Pentium_II
mov dword [ebp - 0x30c], str.Pentium_III
mov dword [ebp - 0x308], str.Unknown
jne 0x40322e
lea ecx, [eax - 3]
cmp cx, 4
ja 0x40322e
movzx eax, ax
push dword [ebp + eax*4 - 0x328]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040cc67
add esp, 0xc
jmp 0x403247
movzx eax, ax
push eax
push str._Unknown_Level:_0x_x_
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040bdcb
add esp, 0x10
movzx eax, word [ebp - 0x326]
push eax
pop ecx
and ecx, 0xff
push ecx
shr eax, 8
push eax
push str.Model__02x__Steppping__02x
lea eax, [ebp - 0x304]
push esi
push eax
call fcn.0040bdcb
push dword [ebp - 0x334]
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str.Processor_Info:__s__s__s__x_d__r_n
push edi
call fcn.0040cd05
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
pop esi
call fcn.0040b965
leave
ret
Function at 0x4032a3
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 8
pop ecx
sub eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
shr dword [ebp - 0xc], 0x14
push dword [ebp - 0xc]
shr dword [ebp - 8], 0x14
push dword [ebp - 8]
shr dword [ebp - 0x14], 0x14
push dword [ebp - 0x14]
shr dword [ebp - 0x10], 0x14
push dword [ebp - 0x10]
shr dword [ebp - 0x1c], 0x14
push dword [ebp - 0x1c]
shr dword [ebp - 0x18], 0x14
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push str.Memory_Info:__u___Load___u__u_MB_Physical____u__u_MB_Page_File____u__u_MB_Virtual__r_n
push esi
call fcn.0040cd05
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
call fcn.0040b965
leave
ret

Function at 0x403317
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.SymGetModuleInfo
push ecx
pop ebx
push edx
pop edi
push eax
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x2c0], 0x23c
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
pop esi
or esi, esi
je 0x40347c
lea eax, [ebp - 0x2c0]
push eax
push 0
push edi
call esi
or eax, eax
je 0x40347c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
pop edi
cmp edi, 0xffffffff
je 0x40347c
push str._r_nMODULE_DUMP_r_n__________________________________________________________________r_n
push ebx
call fcn.0040cd05
pop ecx
pop ecx
lea eax, [ebp - 0x4e4]
push eax
push edi
mov dword [ebp - 0x4e4], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
or eax, eax
je 0x40345c
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x4c4]
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x4033e7
test bl, bl
je 0x4033e3
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x4033e7
sub ecx, 0xfffffffe
sub edx, 0xfffffffe
test bl, bl
jne 0x4033c7
sub ecx, ecx
jmp 0x4033ec
sbb ecx, ecx
sbb ecx, 0xffffffff
or ecx, ecx
je 0x403402
lea eax, [ebp - 0x4e4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
or eax, eax
jne 0x4033bb
or eax, eax
je 0x40345c
push 0x80
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.00402f61
mov ecx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [ebp - 0x2bc]
add ecx, eax
push ecx
push eax
push str._0x_08x___0x_08x___S__S__d___S__r_n
push dword [ebp - 0x4e8]
call fcn.0040cd05
add esp, 0x2c
lea eax, [ebp - 0x2c0]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x4ec]
call esi
or eax, eax
jne 0x40339b
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.0040b965
leave
ret
Function at 0x4070d7
Capabilities:
Access the windows event log

Disassembly:
push 0x18
mov eax, 0x41caf8
call fcn.0041b83f
sub edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00401423
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402daa
cmp dword [0x42abcc], edi
jne 0x4071e9
mov ebx, 0x4221c0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4071e9
mov eax, dword [0x428020]
mov esi, 0x428020
push esi
pop ecx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [0x428020]
push esi
pop ecx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
movzx eax, word [ebp + 0xc]
dec eax
mov byte [ebp - 4], 2
je 0x40716e
dec eax
je 0x407167
dec eax
dec eax
jne 0x40717c
push str.info
jmp 0x407173
push str.warning
jmp 0x407173
push str.error
lea eax, [ebp - 0x10]
push eax
call fcn.00402d02
lea eax, [ebp - 0x1c]
push eax
call fcn.00407019
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
push str._s__s:__s
call fcn.00402420
mov eax, dword [ebp - 0x1c]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402daa
lea eax, [esi - 0x10]
call fcn.00402daa
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
call fcn.0041b8de
ret
Function at 0x407500
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x26c
mov eax, 0x41c86d
call fcn.0041b8a8
push 0x42224c
lea esi, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.0040a377
sub esi, esi
cmp eax, 0xffffffff
je 0x407535
sub eax, eax
mov word [ebp - 0x218], ax
jmp 0x40755e
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
je 0x40755e
sub ecx, ecx
mov word [eax], cx
mov eax, dword [0x428020]
mov ecx, 0x428020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push eax
push str._s_s__s
lea eax, [ebp - 0x21c]
call fcn.00402420
push 0x44
pop edi
push edi
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.0040e690
mov dword [ebp - 0x278], edi
sub eax, eax
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x278]
push eax
push esi
push esi
push 0x420
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x4075f3
cmp ebx, esi
je 0x407609
mov eax, dword [ebp - 0x22c]
mov dword [ebx], eax
jmp 0x407609
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x407607
and eax, 0xffff
or eax, 0x80070000
push eax
pop esi
lea eax, [edi - 0x10]
call fcn.00402daa
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402daa
push esi
pop eax
call fcn.0041b8f2
ret

Function at 0x4076f2
Capabilities:
Query service status
Start service

Disassembly:
push 8
mov eax, 0x41cf60
call fcn.0041b83f
mov eax, dword [0x428020]
mov ecx, 0x428020
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov esi, 0x3e9
sub edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0040295b
pop ecx
cmp eax, edi
je 0x407734
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402a88
mov ebx, dword [ebp - 0x10]
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
or eax, eax
je 0x40779c
push ebx
push str.Starting__s
call fcn.0040709d
pop ecx
pop ecx
push 9
pop esi
cmp dword [0x42abcc], edi
je 0x407766
push 0x422320
call fcn.0040db77
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42ab98
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [0x42ab9c]
cmp eax, 2
jne 0x40778c
dec esi
jne 0x407753
sub eax, 4
neg eax
sbb eax, eax
and eax, 0x41d
push eax
pop esi
jmp 0x4077c7
lea eax, [ebp - 0x14]
push eax
mov edi, 0x422324
call fcn.00402d3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004071fa
push eax
pop esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402daa
or esi, esi
jne 0x4077d8
push ebx
push str._s_started._n
call fcn.0040709d
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.00402daa
push esi
pop eax
call fcn.0041b8de
ret
Function at 0x4077e8
Capabilities:
Query service status
Stop service

Disassembly:
push 0xc
mov eax, 0x41cf35
call fcn.0041b83f
mov eax, dword [0x428020]
and dword [ebp - 0x10], 0
mov ecx, 0x428020
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
mov esi, 0x3e9
push esi
call fcn.0040295b
pop ecx
or eax, eax
je 0x40782d
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402a88
mov ebx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, 0x42ab98
push esi
push dword [ebp + 8]
call edi
cmp dword [0x42ab9c], 1
je 0x4078da
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
or eax, eax
je 0x4078b2
push ebx
push str.Stopping__s
call fcn.0040709d
pop ecx
pop ecx
mov dword [ebp - 0x14], 9
cmp dword [0x42abcc], 0
je 0x407883
push 0x422320
call fcn.0040db77
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call edi
mov eax, dword [0x42ab9c]
cmp eax, 3
jne 0x4078a3
dec dword [ebp - 0x14]
jne 0x40786f
dec eax
neg eax
sbb eax, eax
and eax, 0x41d
mov dword [ebp - 0x10], eax
jmp 0x4078da
lea eax, [ebp - 0x18]
push eax
mov edi, str.Could_not_stop_service
call fcn.00402d3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004071fa
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402daa
lea eax, [ebx - 0x10]
call fcn.00402daa
mov eax, dword [ebp - 0x10]
call fcn.0041b8de
ret
Function at 0x408324
Capabilities:
Delete service

Disassembly:
push 0x14
mov eax, 0x41cff1
call fcn.0041b83f
mov eax, dword [0x428020]
mov esi, 0x428020
push esi
pop ecx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
or eax, eax
je 0x408428
push 0x10024
push 0x4221c0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1c], eax
or eax, eax
je 0x408404
push eax
call fcn.004077e8
pop ecx
mov dword [ebp - 0x14], eax
or eax, eax
jne 0x4083f9
mov eax, dword [0x428020]
push esi
pop ecx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov esi, 0x3e9
push esi
mov byte [ebp - 4], 1
call fcn.0040295b
pop ecx
or eax, eax
je 0x4083bc
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402a88
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
or eax, eax
je 0x4083d8
push edi
push str._s_removed._n
call fcn.0040709d
pop ecx
pop ecx
jmp 0x4083f1
push str.Could_not_delete_service
lea eax, [ebp - 0x10]
push eax
call fcn.00402d02
lea ecx, [ebp - 0x10]
call fcn.004071fa
mov dword [ebp - 0x14], eax
lea eax, [edi - 0x10]
call fcn.00402daa
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40841d
push str.Could_not_open_service
lea eax, [ebp - 0x10]
push eax
call fcn.00402d02
lea ecx, [ebp - 0x10]
call fcn.004071fa
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408441
push str.Could_not_open_the_service_manager
lea eax, [ebp - 0x10]
push eax
call fcn.00402d02
lea ecx, [ebp - 0x10]
call fcn.004071fa
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp - 0x14]
call fcn.0041b8de
ret
Function at 0x408455
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x43c], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x440], eax
or eax, eax
je 0x408544
push ebx
push esi
push 0
push 2
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
pop esi
cmp esi, 0xffffffff
je 0x408542
push 0x22c
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0040e690
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push esi
mov dword [ebp - 0x438], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x408520
push dword [ebp - 0x440]
lea eax, [ebp - 0x414]
push eax
call fcn.0040cbdc
pop ecx
pop ecx
or eax, eax
jne 0x408512
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x430]
jne 0x408526
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or eax, eax
jne 0x4084ec
jmp 0x408533
push 0x1388
mov bl, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4084a5
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b965
leave
ret