Function at 0x4056b0
Capabilities:
Acquire debug privileges
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x470074]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
push str.GlobalA8697E6F_9116_1778_8E9C_A16689B70ACC
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esp + 8], eax
push 1
push 0
push 0
test eax, eax
jne 0x4057f7
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x405716
push 1
push str.dyfw
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x405750
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push esi
call edi
call fcn.004114b0
test al, al
je 0x4057df
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4057d2
push 4
push str.dyfw
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40576c
push esi
jmp 0x4057c7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
jmp 0x405723
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movaps xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4057b8
cmp dword [esp + 0x14], 4
jne 0x4057b8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
jmp 0x405994
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
call fcn.00411880
test al, al
jne 0x405994
call fcn.00411a10
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x405827
push 1
push str.dyfw
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40595f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push esi
call edi
push 8
push str.zhcs.exe
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], 0
call fcn.004016f0
xor edi, edi
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
call fcn.00411ce0
mov esi, eax
test esi, esi
je 0x405935
nop dword [eax + eax]
inc edi
cmp edi, 0x24
jge 0x405935
lea eax, [esp + 0xc]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4058ec
lea eax, [esp + 0x34]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4058e2
mov eax, dword [esp + 0x34]
push 0
push 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x20]
mov dword [esp + 0x54], 1
mov dword [esp + 0x60], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405910
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
call fcn.00411ce0
mov esi, eax
test esi, esi
jne 0x405870
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x40598f
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405985
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059b1
jmp 0x405985
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
call fcn.00411910
call fcn.00411880
jmp 0x405994
push edx
push ecx
call fcn.0041d9cd
add esp, 8
call fcn.00411a10
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret
call fcn.00438969
int3