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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push fcn.00477a10
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00475ff0
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [0x664d60]
test eax, eax
jne 0x4790f4
push esi
push str.TEMP
call fcn.00590c80
add esp, 4
test eax, eax
jne 0x47908a
push 0x5d4830
call fcn.00590c80
add esp, 4
test eax, eax
jne 0x47908a
push dword [ebp - 4]
call fcn.00477a80
mov eax, dword [ebp - 4]
add esp, 4
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x479040
push esi
push dword [ebp - 4]
call fcn.00477aa0
mov ecx, dword [ebp - 4]
add esp, 8
push dword [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 4]
push dword [eax]
push 0x664d60
call fcn.00477210
jmp 0x479095
push 0x5d4834
call fcn.00590c80
add esp, 4
test eax, eax
je 0x4790f8
mov dl, byte [eax]
movzx ecx, dl
test byte [ecx*2 + 0x6459d8], 4
je 0x4790f8
cmp byte [eax + 1], 0x3a
jne 0x4790f8
movsx eax, dl
push eax
push str._c:_Temp
push 0x664d60
call fcn.00477140
add esp, 0xc
jmp 0x479098
push eax
push 0x664d60
call fcn.004770b0
add esp, 8
lea eax, [ebp - 0x3c]
push eax
push dword [0x664d60]
call fcn.00591d70
add esp, 8
pop esi
test eax, eax
jne 0x4790c3
movzx eax, word [ebp - 0x36]
test eax, eax
je 0x4790c3
and eax, 0xf000
cmp eax, 0x4000
je 0x4790ef
push dword [0x664d60]
push str.creating_temp_directory__s
push 0x360004
call fcn.00479a10
push 0x1ff
push dword [0x664d60]
call fcn.005911f0
add esp, 0x14
test eax, eax
jne 0x479107
mov eax, dword [0x664d60]
mov esp, ebp
pop ebp
ret
push str.failed_to_get_temp_directory
push 0x360000
call fcn.00479f70
push str.failed_to_create_temp_directory
push 0x360000
call fcn.00479f70
int3
Function at 0x47a3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push 2
call fcn.005975bc
mov edi, dword [ebp + 0x10]
add esp, 4
mov ecx, edi
mov ebx, edi
sar ecx, 0x10
and ebx, 0xf
movzx ecx, cl
mov esi, eax
lea eax, [ebp - 0x100]
mov dword [ebp + 0x10], ecx
cmp dword [ecx*4 + 0x669020], ebx
jge 0x47a3f6
test edi, 0x300
je 0x47a4f3
cmp dword [0x669420], 0
je 0x47a422
call fcn.0047a7f0
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0058d4c0
mov cx, word [0x5d49e8]
add esp, 8
mov word [eax], cx
inc eax
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*2]
push dword [ecx*4 + 0x654ffc]
push eax
call fcn.0058d4c0
movzx ecx, word [0x5d49e8]
mov word [eax], cx
inc eax
push dword [ebx*4 + 0x6543e0]
push eax
call fcn.0058d4c0
movzx ecx, word [0x5d49e4]
mov ebx, eax
mov word [ebx], cx
mov cl, byte [0x5d49e6]
mov byte [ebx + 2], cl
add ebx, 2
lea ecx, [ebp - 1]
sub ecx, ebx
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.0058d380
add esp, 0x1c
lea ecx, [ebp - 1]
push esi
push 1
cmp eax, ecx
jae 0x47a498
mov byte [eax], 0xa
lea ecx, [ebp - 0x100]
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
call fcn.0059dc18
add esp, 0x10
jmp 0x47a4be
lea eax, [ebp - 0x100]
sub ebx, eax
push ebx
push eax
call fcn.0059dc18
push esi
push dword [ebp + 0xc]
call fcn.0059e1e5
push esi
push 0x5d46b0
call fcn.0059e1e5
add esp, 0x20
mov eax, dword [0x654c14]
cmp eax, 0xffffffff
jne 0x47a4dc
push esi
call fcn.00590c00
push eax
call fcn.00591180
add esp, 8
mov dword [0x654c14], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x47a4f3
push esi
call fcn.005a3850
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b5c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test esi, esi
je 0x47b5e3
mov ebx, esi
jmp 0x47b5ea
call fcn.00591170
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
mov dword [ebp + 0x10], 0
call fcn.00498ad0
add esp, 8
test eax, eax
je 0x47b627
push str.failed_privilege_enable
push 0x360003
call fcn.00479a10
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x47b66a
push ebx
push 0
push 0xfffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.00590bc0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x47b663
push str.failed_OpenProcess:__m
push 0x360003
call fcn.00479a10
add esp, 8
or ebx, 0xffffffff
jmp 0x47b721
mov dword [ebp + 0x10], 1
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call fcn.00498970
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x47b6aa
push edi
push str.failed_z_CreateFile__s:__m
push 0x360003
call fcn.00479a10
add esp, 0xc
or ebx, 0xffffffff
jmp 0x47b720
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x20], eax
test esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
cmovne eax, edx
mov dword [ebp - 0x14], 0x47bd90
cmp dword [ebp + 0x14], 0
mov edx, 7
push eax
mov eax, 0x11a0
mov dword [ebp - 0x10], 0
cmove eax, edx
push eax
push ecx
push ebx
push dword [ebp - 4]
call dword [0x664e94]
push eax
call fcn.00590b90
xor ebx, ebx
add esp, 4
test eax, eax
sete bl
test eax, eax
jne 0x47b720
push edi
push str.failed_MiniDumpWriteDump__s:__m
push 0x360003
call fcn.00479a10
add esp, 0xc
pop edi
lea eax, [ebp - 0x30]
push eax
call fcn.00498b30
lea eax, [ebp - 8]
push eax
call fcn.00498940
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x47b748
lea eax, [ebp - 4]
push eax
call fcn.00498940
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b840
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x47b870
push eax
call fcn.00596eae
add esp, 4
mov dword [edi], 0
lea eax, [ebp - 0x34]
push eax
push str.SeDebugPrivilege
call fcn.00498ad0
add esp, 8
test eax, eax
jne 0x47b9a7
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x47b898
call fcn.00591170
mov ebx, eax
push ebx
call fcn.0047cae0
add esp, 4
test eax, eax
jne 0x47b991
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
test eax, eax
je 0x47b9a6
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x47b991
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x1c], eax
jne 0x47b8f1
call fcn.00591170
cmp ebx, eax
jne 0x47b8f1
mov esi, 1
jmp 0x47b8f3
xor esi, esi
cmp dword [ebp - 0x18], ebx
jne 0x47b96e
push dword [ebp - 0x1c]
push str.Thread__ld:_n
push edi
call fcn.00476df0
add esp, 0xc
push dword [ebp - 0x1c]
push 0
push 0xfffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
push eax
call fcn.00590bc0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x47b939
push str.Failed_opening_the_thread:__m_n
push edi
call fcn.00476df0
add esp, 8
jmp 0x47b96e
test esi, esi
je 0x47b9ae
lea eax, [ebp - 0x300]
push eax
call dword [0x664ea8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x300]
push dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0047bb50
add esp, 0x14
test esi, esi
jne 0x47b96e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00498940
add esp, 4
test esi, esi
jne 0x47b8d6
pop esi
lea eax, [ebp - 0x34]
push eax
call fcn.00498b30
lea eax, [ebp - 8]
push eax
call fcn.00498940
add esp, 8
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push eax
call fcn.00590b90
add esp, 4
cmp eax, 0xffffffff
jne 0x47b9d3
push str.Failed_to_suspend_the_thread:__m_n
push edi
call fcn.00476df0
add esp, 8
jmp 0x47b96e
lea eax, [ebp - 0x300]
mov dword [ebp - 0x300], 0x1001f
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x47b94a
push str.Failed_getting_thread_context:__m_n
push edi
call fcn.00476df0
add esp, 8
jmp 0x47b965
Function at 0x47c410
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
xor ebx, ebx
lea eax, [ebp - 0x44c]
push 0x428
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00594c60
add esp, 0xc
mov dword [ebp - 0x44c], 0x428
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ecx, eax
xor edx, edx
cmp ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
cmove eax, edx
test eax, eax
je 0x47c5f8
lea eax, [ebp - 0x44c]
push eax
push ecx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x47c5f8
push esi
lea esi, [ebp + 4]
add esi, 0xfffffffc
push edi
mov dword [ebp - 0x24], esi
mov edi, 0x41c64e6d
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.004764f0
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push eax
push esi
call fcn.004764f0
mov esi, dword [ebp - 0x438]
push 1
push 0xc
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
call fcn.00596ea3
push dword [ebp - 4]
mov ebx, dword [0x664edc]
mov dword [ebp - 0x20], eax
mov eax, esi
mul edi
mov edi, eax
mov esi, edx
call fcn.00477db0
mov ecx, dword [ebx + 4]
sub edi, esi
mov edx, eax
add esp, 0x1c
mov eax, dword [ebx + 8]
xor edx, edi
mov edi, dword [ebp - 8]
and ecx, edx
mov dword [ebp - 0x14], edx
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x47c543
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
cmp edx, dword [esi]
jne 0x47c53c
cmp edi, dword [esi + 0x10]
jne 0x47c53c
mov eax, dword [esi + 0x1c]
mov ecx, ebx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x47c530
test dl, dl
je 0x47c52c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x47c530
add ecx, 2
add eax, 2
test dl, dl
jne 0x47c510
xor eax, eax
jmp 0x47c535
sbb eax, eax
or eax, 1
test eax, eax
je 0x47c5ac
mov edx, dword [ebp - 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x47c500
push 1
push 0x30
call fcn.00596ea3
push dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], 0
call fcn.004770b0
push dword [ebp - 4]
lea eax, [esi + 0x1c]
push eax
call fcn.004770b0
mov ecx, dword [0x654c24]
push 0
push esi
mov dword [esi + 0xc], ecx
lea eax, [ecx + 4]
mov dword [0x654c24], eax
call fcn.0047c620
push esi
push dword [0x664edc]
call fcn.0047c150
mov eax, dword [0x664edc]
add esp, 0x28
cmp dword [eax + 0xc], 0x3e8
jge 0x47c60b
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov dword [ecx + 8], esi
test ebx, ebx
je 0x47c5c9
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
jmp 0x47c5d1
mov ebx, ecx
mov dword [ecx + 4], ecx
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x44c]
mov dword [ecx], 0
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Module32NextW
mov esi, dword [ebp - 0x24]
mov edi, 0x41c64e6d
test eax, eax
jne 0x47c482
pop edi
pop esi
lea eax, [ebp - 0x10]
push eax
call fcn.00498940
add esp, 4
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.using_more_than_1000_module_entries
push 0x36
call fcn.00475dd0
int3
Function at 0x47e1c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x47ddf0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00475ff0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], 0xffffffff
push eax
mov dword [ebp - 4], 0
call fcn.00477160
add esp, 0x18
cmp dword [0x6690f8], 6
jl 0x47e21c
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.sys_exec__s_
push 0x360006
call fcn.00479a10
add esp, 0xc
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.0047e330
add esp, 4
test eax, eax
jns 0x47e256
cmp dword [0x6690f8], 6
jl 0x47e310
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.failed_sys_exec_bg__s_
push 0x360006
call fcn.00479a10
add esp, 0xc
jmp 0x47e310
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0047f430
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 0x10], eax
mov esi, eax
mov eax, dword [0x664eec]
test eax, eax
je 0x47e2a7
imul eax, eax, 0x3e8
cdq
sub eax, ecx
sbb edx, esi
add eax, ebx
adc edx, dword [ebp - 0x10]
test edx, edx
ja 0x47e2a2
jb 0x47e295
test eax, eax
jne 0x47e2a2
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
jmp 0x47e2b1
mov dword [ebp - 0x14], edx
jmp 0x47e2b1
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
push 1
push eax
push dword [ebp - 4]
call edi
cmp eax, 0xc0
jne 0x47e2cb
call fcn.0047f430
mov ecx, eax
mov esi, edx
jmp 0x47e272
pop edi
pop esi
pop ebx
test eax, eax
je 0x47e2e6
push 0x16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], 0xfffffff7
jmp 0x47e304
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 8]
mov ecx, 0xffffffea
cmp eax, 3
cmove eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00498940
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x15f8], eax
mov esp, ebp
pop ebp
ret

Function at 0x47e800
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x47e870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x14
call fcn.00596ea3
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0
push esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
push 0x47e9f0
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 2
call fcn.005a5843
add esp, 0x20
mov dword [esi], eax
pop esi
test eax, eax
je 0x47e8b8
xor eax, eax
pop ebp
ret
push str.failed_create_thread:__m
push 0x360000
call fcn.00479f70
int3
Function at 0x486760
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp dword [0x665124], 0
push edi
je 0x486802
push dword [ebp + 8]
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.004766b0
add esp, 8
push 0x10000
push dword [eax]
push dword [0x665124]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.00590bc0
mov edi, eax
add esp, 4
test edi, edi
je 0x486802
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x4867d4
push dword [ebp + 8]
push str.Failed_deleting_service__s:__m
push 0x550003
call fcn.00479a10
add esp, 0xc
jmp 0x4867d6
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x4867fc
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00479a10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x486819
call fcn.00596e90
mov eax, dword [eax]
sub eax, 0x424
neg eax
pop edi
sbb eax, eax
pop esi
pop ebp
ret

Function at 0x486830
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x665124], esi
je 0x4868e4
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.004766b0
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x665124]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.00590bc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4868e4
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x4868b2
push edi
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00479a10
add esp, 0xc
test eax, eax
jne 0x4868b5
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x4868f7
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00479a10
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.service__s_doesnt_exist
push 0x550005
call fcn.00479a10
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486900
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or esi, 0xffffffff
cmp dword [0x665124], 0
push edi
mov edi, dword [ebp + 8]
je 0x4869b7
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.004766b0
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x665124]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.00590bc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4869b7
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x486985
push edi
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00479a10
add esp, 0xc
test eax, eax
jne 0x486988
mov esi, dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x4869ca
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00479a10
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.service__s_doesnt_exist
push 0x550005
call fcn.00479a10
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486d40
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x24
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x486d7e
push dword [ebp + 0x10]
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00479a10
add esp, 0xc
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x487030
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x1c]
lea esi, [ebp + 4]
add esi, 0xfffffffc
push esi
call fcn.004766b0
push dword [ebp + 0xc]
push esi
mov edi, dword [eax]
call fcn.004766b0
push dword [ebp + 8]
push esi
mov ebx, dword [eax]
call fcn.004766b0
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [eax]
push dword [0x665124]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push eax
call fcn.00590bc0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x487110
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
mov eax, dword [ebx]
test eax, eax
je 0x487130
push eax
call fcn.00596eae
add esp, 4
mov dword [ebx], 0
push 1
push 0x200
call fcn.00596ea3
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push 0x200
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x487196
cmp dword [0x669174], 6
jl 0x48717b
push str.EnumProcessModules_failed:__m
push 0x550006
call fcn.00479a10
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x4871e4
push eax
call fcn.00596eae
add esp, 4
mov dword [ebx], 0
mov eax, edi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
shr edi, 2
cmp edi, 0x80
jb 0x4871e4
push esi
lea esi, [edi*8]
push esi
push dword [ebx]
call fcn.0059d341
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.00590b90
add esp, 4
pop esi
test eax, eax
je 0x4871ea
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi]
shr ecx, 2
cmp ecx, eax
jae 0x4871f9
mov edi, ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
push str.EnumProcessModules_2nd_failed:__m
push 0x550000
call fcn.00479f70
push str.EnumProcessModules_no_space
push 0x550000
call fcn.00479f70
int3

Function at 0x4872f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x487337
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x48736c
push str.failed_CheckTokenMembership__:__m
push 0x550003
call fcn.00479a10
add esp, 8
mov dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret