Function at 0x4c6690
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x597bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0x11c]
mov edi, dword [ebp + 0x118]
mov byte [ebp - 0xd], al
mov eax, dword [ebp + 0x110]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x114]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], vtable.Utils::ResourceHolders::resource_t_char___struct_Utils::ResourceHolders::ptr_dtor_t_char___struct_Utils::ResourceHolders::puredrop_and_null_t_char___struct_Utils::ResourceHolders::ptr_dtor_t_char___.0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x5b3f80
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0x5b3f88
mov dword [ebp - 4], 2
lea eax, [ebp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c6924
lea ecx, [ebp]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6740
sub ecx, edx
mov edx, edi
lea ebx, [ecx + 4]
test edi, edi
je 0x4c6774
mov ecx, dword [edi]
test ecx, ecx
je 0x4c6774
lea edx, [edx + 4]
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6760
sub ecx, esi
add ecx, 3
add ebx, ecx
mov ecx, dword [edx]
test ecx, ecx
jne 0x4c6758
push ebx
call fcn.00539947
mov esi, eax
add esp, 4
test esi, esi
je 0x4c6924
mov byte [esi], 0
cmp byte [ebp], 0
je 0x4c67bc
push 0x5b3eb8
push ebx
push esi
call fcn.00561801
lea eax, [ebp]
push eax
push ebx
push esi
call fcn.00561801
push 0x5b3eb8
push ebx
push esi
call fcn.00561801
add esp, 0x24
mov byte [ebp - 0x1c], 0
jmp 0x4c67c0
mov byte [ebp - 0x1c], 1
test edi, edi
je 0x4c67eb
mov eax, dword [edi]
test eax, eax
je 0x4c67eb
lea ebx, [ebx]
push dword [ebp - 0x1c]
lea edi, [edi + 4]
push eax
push ebx
push esi
call fcn.004c6460
mov eax, dword [edi]
add esp, 0x10
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x4c67d0
mov dword [ebp - 0x14], esi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x30], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], 0x5b3eb4
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x4c682c
lea esi, [ebx + 3]
jmp 0x4c68fa
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x4c6837
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 0x10
jb 0x4c6842
mov edx, dword [edx]
movzx eax, byte [ebp - 0xd]
push 0
push 0
push str.RpcSs
push 0
push str.Extended_base
push dword [ebp - 0x14]
xor eax, 1
push 1
add eax, 2
push eax
push 0x10
push 0xf01ff
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0x5b3eb4
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
test edi, edi
jne 0x4c68a1
lea esi, [edi + 3]
xor eax, eax
jmp 0x4c68da
push 0x5b3ebc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov eax, edi
test ecx, ecx
je 0x4c68da
push str.ChangeServiceConfig2A
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, edi
test ecx, ecx
je 0x4c68da
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Dr.Web_Scanning_Engine_checks_your_files_against_viruses._It_is_essential_part_of_the_Dr.Web_Anti_Virus__Please_do_not_stop_and_do_not_disable_it.
push eax
push 1
push edi
call ecx
mov eax, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
test eax, eax
je 0x4c68f0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
test ebx, ebx
je 0x4c6910
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x4c6929
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4c6929
mov esi, 3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.Utils::ResourceHolders::resource_t_char___struct_Utils::ResourceHolders::ptr_dtor_t_char___struct_Utils::ResourceHolders::puredrop_and_null_t_char___struct_Utils::ResourceHolders::ptr_dtor_t_char___.0
test eax, eax
je 0x4c6949
push 1
push eax
call fcn.00539070
add esp, 8
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x108]
pop ebp
ret